1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoLoadBalancer
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Provides a resource to create a TEO load balancer instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoLoadBalancer("example", {
        zoneId: "zone-3fkff38fyw8s",
        name: "tf-example",
        type: "HTTP",
        originGroups: [
            {
                priority: "priority_1",
                originGroupId: "og-3pfz5626nmbb",
            },
            {
                priority: "priority_2",
                originGroupId: "og-3pfz1ztltzo0",
            },
        ],
        healthChecker: {
            type: "ICMP Ping",
            interval: 30,
            timeout: 5,
            healthThreshold: 3,
            criticalThreshold: 2,
        },
        steeringPolicy: "Pritory",
        failoverPolicy: "OtherOriginGroup",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoLoadBalancer("example",
        zone_id="zone-3fkff38fyw8s",
        name="tf-example",
        type="HTTP",
        origin_groups=[
            {
                "priority": "priority_1",
                "origin_group_id": "og-3pfz5626nmbb",
            },
            {
                "priority": "priority_2",
                "origin_group_id": "og-3pfz1ztltzo0",
            },
        ],
        health_checker={
            "type": "ICMP Ping",
            "interval": 30,
            "timeout": 5,
            "health_threshold": 3,
            "critical_threshold": 2,
        },
        steering_policy="Pritory",
        failover_policy="OtherOriginGroup")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTeoLoadBalancer(ctx, "example", &tencentcloud.TeoLoadBalancerArgs{
    			ZoneId: pulumi.String("zone-3fkff38fyw8s"),
    			Name:   pulumi.String("tf-example"),
    			Type:   pulumi.String("HTTP"),
    			OriginGroups: tencentcloud.TeoLoadBalancerOriginGroupArray{
    				&tencentcloud.TeoLoadBalancerOriginGroupArgs{
    					Priority:      pulumi.String("priority_1"),
    					OriginGroupId: pulumi.String("og-3pfz5626nmbb"),
    				},
    				&tencentcloud.TeoLoadBalancerOriginGroupArgs{
    					Priority:      pulumi.String("priority_2"),
    					OriginGroupId: pulumi.String("og-3pfz1ztltzo0"),
    				},
    			},
    			HealthChecker: &tencentcloud.TeoLoadBalancerHealthCheckerArgs{
    				Type:              pulumi.String("ICMP Ping"),
    				Interval:          pulumi.Float64(30),
    				Timeout:           pulumi.Float64(5),
    				HealthThreshold:   pulumi.Float64(3),
    				CriticalThreshold: pulumi.Float64(2),
    			},
    			SteeringPolicy: pulumi.String("Pritory"),
    			FailoverPolicy: pulumi.String("OtherOriginGroup"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.TeoLoadBalancer("example", new()
        {
            ZoneId = "zone-3fkff38fyw8s",
            Name = "tf-example",
            Type = "HTTP",
            OriginGroups = new[]
            {
                new Tencentcloud.Inputs.TeoLoadBalancerOriginGroupArgs
                {
                    Priority = "priority_1",
                    OriginGroupId = "og-3pfz5626nmbb",
                },
                new Tencentcloud.Inputs.TeoLoadBalancerOriginGroupArgs
                {
                    Priority = "priority_2",
                    OriginGroupId = "og-3pfz1ztltzo0",
                },
            },
            HealthChecker = new Tencentcloud.Inputs.TeoLoadBalancerHealthCheckerArgs
            {
                Type = "ICMP Ping",
                Interval = 30,
                Timeout = 5,
                HealthThreshold = 3,
                CriticalThreshold = 2,
            },
            SteeringPolicy = "Pritory",
            FailoverPolicy = "OtherOriginGroup",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoLoadBalancer;
    import com.pulumi.tencentcloud.TeoLoadBalancerArgs;
    import com.pulumi.tencentcloud.inputs.TeoLoadBalancerOriginGroupArgs;
    import com.pulumi.tencentcloud.inputs.TeoLoadBalancerHealthCheckerArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new TeoLoadBalancer("example", TeoLoadBalancerArgs.builder()
                .zoneId("zone-3fkff38fyw8s")
                .name("tf-example")
                .type("HTTP")
                .originGroups(            
                    TeoLoadBalancerOriginGroupArgs.builder()
                        .priority("priority_1")
                        .originGroupId("og-3pfz5626nmbb")
                        .build(),
                    TeoLoadBalancerOriginGroupArgs.builder()
                        .priority("priority_2")
                        .originGroupId("og-3pfz1ztltzo0")
                        .build())
                .healthChecker(TeoLoadBalancerHealthCheckerArgs.builder()
                    .type("ICMP Ping")
                    .interval(30.0)
                    .timeout(5.0)
                    .healthThreshold(3.0)
                    .criticalThreshold(2.0)
                    .build())
                .steeringPolicy("Pritory")
                .failoverPolicy("OtherOriginGroup")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoLoadBalancer
        properties:
          zoneId: zone-3fkff38fyw8s
          name: tf-example
          type: HTTP
          originGroups:
            - priority: priority_1
              originGroupId: og-3pfz5626nmbb
            - priority: priority_2
              originGroupId: og-3pfz1ztltzo0
          healthChecker:
            type: ICMP Ping
            interval: 30
            timeout: 5
            healthThreshold: 3
            criticalThreshold: 2
          steeringPolicy: Pritory
          failoverPolicy: OtherOriginGroup
    
    Example coming soon!
    

    Create TeoLoadBalancer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoLoadBalancer(name: string, args: TeoLoadBalancerArgs, opts?: CustomResourceOptions);
    @overload
    def TeoLoadBalancer(resource_name: str,
                        args: TeoLoadBalancerArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoLoadBalancer(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        origin_groups: Optional[Sequence[TeoLoadBalancerOriginGroupArgs]] = None,
                        type: Optional[str] = None,
                        zone_id: Optional[str] = None,
                        failover_policy: Optional[str] = None,
                        health_checker: Optional[TeoLoadBalancerHealthCheckerArgs] = None,
                        name: Optional[str] = None,
                        steering_policy: Optional[str] = None,
                        teo_load_balancer_id: Optional[str] = None,
                        timeouts: Optional[TeoLoadBalancerTimeoutsArgs] = None)
    func NewTeoLoadBalancer(ctx *Context, name string, args TeoLoadBalancerArgs, opts ...ResourceOption) (*TeoLoadBalancer, error)
    public TeoLoadBalancer(string name, TeoLoadBalancerArgs args, CustomResourceOptions? opts = null)
    public TeoLoadBalancer(String name, TeoLoadBalancerArgs args)
    public TeoLoadBalancer(String name, TeoLoadBalancerArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoLoadBalancer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teoloadbalancer" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoLoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TeoLoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TeoLoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoLoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoLoadBalancerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoLoadBalancer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The TeoLoadBalancer resource accepts the following input properties:

    OriginGroups List<TeoLoadBalancerOriginGroup>
    Source origin group list with failover priority.
    Type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    ZoneId string
    Site ID.
    FailoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    HealthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    Name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    SteeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    TeoLoadBalancerId string
    ID of the resource.
    Timeouts TeoLoadBalancerTimeouts
    OriginGroups []TeoLoadBalancerOriginGroupArgs
    Source origin group list with failover priority.
    Type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    ZoneId string
    Site ID.
    FailoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    HealthChecker TeoLoadBalancerHealthCheckerArgs
    Health check policy. If not set, health check is disabled by default.
    Name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    SteeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    TeoLoadBalancerId string
    ID of the resource.
    Timeouts TeoLoadBalancerTimeoutsArgs
    origin_groups list(object)
    Source origin group list with failover priority.
    type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zone_id string
    Site ID.
    failover_policy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    health_checker object
    Health check policy. If not set, health check is disabled by default.
    name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    steering_policy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teo_load_balancer_id string
    ID of the resource.
    timeouts object
    originGroups List<TeoLoadBalancerOriginGroup>
    Source origin group list with failover priority.
    type String
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId String
    Site ID.
    failoverPolicy String
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    name String
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    steeringPolicy String
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId String
    ID of the resource.
    timeouts TeoLoadBalancerTimeouts
    originGroups TeoLoadBalancerOriginGroup[]
    Source origin group list with failover priority.
    type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId string
    Site ID.
    failoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    steeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId string
    ID of the resource.
    timeouts TeoLoadBalancerTimeouts
    origin_groups Sequence[TeoLoadBalancerOriginGroupArgs]
    Source origin group list with failover priority.
    type str
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zone_id str
    Site ID.
    failover_policy str
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    health_checker TeoLoadBalancerHealthCheckerArgs
    Health check policy. If not set, health check is disabled by default.
    name str
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    steering_policy str
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teo_load_balancer_id str
    ID of the resource.
    timeouts TeoLoadBalancerTimeoutsArgs
    originGroups List<Property Map>
    Source origin group list with failover priority.
    type String
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId String
    Site ID.
    failoverPolicy String
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker Property Map
    Health check policy. If not set, health check is disabled by default.
    name String
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    steeringPolicy String
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId String
    ID of the resource.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoLoadBalancer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Load balancer instance ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Load balancer instance ID.
    id string
    The provider-assigned unique ID for this managed resource.
    instance_id string
    Load balancer instance ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Load balancer instance ID.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    Load balancer instance ID.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    Load balancer instance ID.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    Load balancer instance ID.

    Look up Existing TeoLoadBalancer Resource

    Get an existing TeoLoadBalancer resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TeoLoadBalancerState, opts?: CustomResourceOptions): TeoLoadBalancer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            failover_policy: Optional[str] = None,
            health_checker: Optional[TeoLoadBalancerHealthCheckerArgs] = None,
            instance_id: Optional[str] = None,
            name: Optional[str] = None,
            origin_groups: Optional[Sequence[TeoLoadBalancerOriginGroupArgs]] = None,
            steering_policy: Optional[str] = None,
            teo_load_balancer_id: Optional[str] = None,
            timeouts: Optional[TeoLoadBalancerTimeoutsArgs] = None,
            type: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoLoadBalancer
    func GetTeoLoadBalancer(ctx *Context, name string, id IDInput, state *TeoLoadBalancerState, opts ...ResourceOption) (*TeoLoadBalancer, error)
    public static TeoLoadBalancer Get(string name, Input<string> id, TeoLoadBalancerState? state, CustomResourceOptions? opts = null)
    public static TeoLoadBalancer get(String name, Output<String> id, TeoLoadBalancerState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoLoadBalancer    get:      id: ${id}
    import {
      to = tencentcloud_teoloadbalancer.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    FailoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    HealthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    InstanceId string
    Load balancer instance ID.
    Name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    OriginGroups List<TeoLoadBalancerOriginGroup>
    Source origin group list with failover priority.
    SteeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    TeoLoadBalancerId string
    ID of the resource.
    Timeouts TeoLoadBalancerTimeouts
    Type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    ZoneId string
    Site ID.
    FailoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    HealthChecker TeoLoadBalancerHealthCheckerArgs
    Health check policy. If not set, health check is disabled by default.
    InstanceId string
    Load balancer instance ID.
    Name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    OriginGroups []TeoLoadBalancerOriginGroupArgs
    Source origin group list with failover priority.
    SteeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    TeoLoadBalancerId string
    ID of the resource.
    Timeouts TeoLoadBalancerTimeoutsArgs
    Type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    ZoneId string
    Site ID.
    failover_policy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    health_checker object
    Health check policy. If not set, health check is disabled by default.
    instance_id string
    Load balancer instance ID.
    name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    origin_groups list(object)
    Source origin group list with failover priority.
    steering_policy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teo_load_balancer_id string
    ID of the resource.
    timeouts object
    type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zone_id string
    Site ID.
    failoverPolicy String
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    instanceId String
    Load balancer instance ID.
    name String
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    originGroups List<TeoLoadBalancerOriginGroup>
    Source origin group list with failover priority.
    steeringPolicy String
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId String
    ID of the resource.
    timeouts TeoLoadBalancerTimeouts
    type String
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId String
    Site ID.
    failoverPolicy string
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker TeoLoadBalancerHealthChecker
    Health check policy. If not set, health check is disabled by default.
    instanceId string
    Load balancer instance ID.
    name string
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    originGroups TeoLoadBalancerOriginGroup[]
    Source origin group list with failover priority.
    steeringPolicy string
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId string
    ID of the resource.
    timeouts TeoLoadBalancerTimeouts
    type string
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId string
    Site ID.
    failover_policy str
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    health_checker TeoLoadBalancerHealthCheckerArgs
    Health check policy. If not set, health check is disabled by default.
    instance_id str
    Load balancer instance ID.
    name str
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    origin_groups Sequence[TeoLoadBalancerOriginGroupArgs]
    Source origin group list with failover priority.
    steering_policy str
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teo_load_balancer_id str
    ID of the resource.
    timeouts TeoLoadBalancerTimeoutsArgs
    type str
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zone_id str
    Site ID.
    failoverPolicy String
    Retry policy on request failure. Valid values: OtherOriginGroup (retry next priority origin group); OtherRecordInOriginGroup (retry another origin in the same group). Default: OtherRecordInOriginGroup.
    healthChecker Property Map
    Health check policy. If not set, health check is disabled by default.
    instanceId String
    Load balancer instance ID.
    name String
    Load balancer instance name, 1-200 characters, allowed characters: a-z, A-Z, 0-9, _, -.
    originGroups List<Property Map>
    Source origin group list with failover priority.
    steeringPolicy String
    Traffic steering policy between origin groups. Valid value: Pritory (failover by priority). Default: Pritory.
    teoLoadBalancerId String
    ID of the resource.
    timeouts Property Map
    type String
    Instance type. Valid values: HTTP (HTTP-specific, supports HTTP-specific and general origin groups, only referenced by site acceleration services); GENERAL (general, only supports general origin groups, can be referenced by site acceleration and Layer-4 proxy).
    zoneId String
    Site ID.

    Supporting Types

    TeoLoadBalancerHealthChecker, TeoLoadBalancerHealthCheckerArgs

    Type string
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    CriticalThreshold double
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    ExpectedCodes List<string>
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    FollowRedirect string
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    Headers List<TeoLoadBalancerHealthCheckerHeader>
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    HealthThreshold double
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    Interval double
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    Method string
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    Path string
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    Port double
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    RecvContext string
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    SendContext string
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    Timeout double
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    Type string
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    CriticalThreshold float64
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    ExpectedCodes []string
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    FollowRedirect string
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    Headers []TeoLoadBalancerHealthCheckerHeader
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    HealthThreshold float64
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    Interval float64
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    Method string
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    Path string
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    Port float64
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    RecvContext string
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    SendContext string
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    Timeout float64
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    type string
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    critical_threshold number
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    expected_codes list(string)
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    follow_redirect string
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    headers list(object)
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    health_threshold number
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    interval number
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    method string
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    path string
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    port number
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    recv_context string
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    send_context string
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    timeout number
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    type String
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    criticalThreshold Double
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    expectedCodes List<String>
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    followRedirect String
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    headers List<TeoLoadBalancerHealthCheckerHeader>
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    healthThreshold Double
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    interval Double
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    method String
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    path String
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    port Double
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    recvContext String
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    sendContext String
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    timeout Double
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    type string
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    criticalThreshold number
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    expectedCodes string[]
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    followRedirect string
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    headers TeoLoadBalancerHealthCheckerHeader[]
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    healthThreshold number
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    interval number
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    method string
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    path string
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    port number
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    recvContext string
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    sendContext string
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    timeout number
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    type str
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    critical_threshold float
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    expected_codes Sequence[str]
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    follow_redirect str
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    headers Sequence[TeoLoadBalancerHealthCheckerHeader]
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    health_threshold float
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    interval float
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    method str
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    path str
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    port float
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    recv_context str
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    send_context str
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    timeout float
    Timeout in seconds for each health check. Must be less than interval. Default: 5.
    type String
    Health check type. Valid values: HTTP, HTTPS, TCP, UDP, ICMP Ping, NoCheck. NoCheck means health check is disabled.
    criticalThreshold Number
    Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
    expectedCodes List<String>
    Expected response status codes, valid when type is HTTP or HTTPS. e.g., ["200", "301"].
    followRedirect String
    Whether to follow 301/302 redirects, valid when type is HTTP or HTTPS. Valid values: true, false.
    headers List<Property Map>
    Custom HTTP request headers (up to 10), valid when type is HTTP or HTTPS.
    healthThreshold Number
    Number of consecutive healthy results to mark the origin as healthy. Default: 3, minimum: 1.
    interval Number
    Check interval in seconds. Valid values: 30, 60, 180, 300, 600.
    method String
    Request method, valid when type is HTTP or HTTPS. Valid values: GET, HEAD.
    path String
    Probe path, valid when type is HTTP or HTTPS. Full host/path without protocol, e.g., www.example.com/test.
    port Number
    Check port. Required when type is HTTP, HTTPS, TCP, or UDP.
    recvContext String
    Expected response content from origin, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    sendContext String
    Content to send during health check, valid when type is UDP. Only ASCII visible characters allowed, max length 500.
    timeout Number
    Timeout in seconds for each health check. Must be less than interval. Default: 5.

    TeoLoadBalancerHealthCheckerHeader, TeoLoadBalancerHealthCheckerHeaderArgs

    Key string
    Custom header key.
    Value string
    Custom header value.
    Key string
    Custom header key.
    Value string
    Custom header value.
    key string
    Custom header key.
    value string
    Custom header value.
    key String
    Custom header key.
    value String
    Custom header value.
    key string
    Custom header key.
    value string
    Custom header value.
    key str
    Custom header key.
    value str
    Custom header value.
    key String
    Custom header key.
    value String
    Custom header value.

    TeoLoadBalancerOriginGroup, TeoLoadBalancerOriginGroupArgs

    OriginGroupId string
    Origin group ID.
    Priority string
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    OriginGroupId string
    Origin group ID.
    Priority string
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    origin_group_id string
    Origin group ID.
    priority string
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    originGroupId String
    Origin group ID.
    priority String
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    originGroupId string
    Origin group ID.
    priority string
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    origin_group_id str
    Origin group ID.
    priority str
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.
    originGroupId String
    Origin group ID.
    priority String
    Priority, format: priority_ + number, highest priority is priority_1. Valid values: priority_1, priority_2..., priority_10.

    TeoLoadBalancerTimeouts, TeoLoadBalancerTimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create string
    update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Import

    TEO load balancer can be imported using the zoneId#instanceId, e.g.

    $ pulumi import tencentcloud:index/teoLoadBalancer:TeoLoadBalancer example zone-3fkff38fyw8s#lb-3pfzdob8hh3d
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.