published on Monday, May 11, 2026 by tencentcloudstack
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:
- Origin
Groups List<TeoLoad Balancer Origin Group> - 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 TeoLoad Balancer Health Checker - 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 stringBalancer Id - ID of the resource.
- Timeouts
Teo
Load Balancer Timeouts
- Origin
Groups []TeoLoad Balancer Origin Group Args - 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 TeoLoad Balancer Health Checker Args - 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 stringBalancer Id - ID of the resource.
- Timeouts
Teo
Load Balancer Timeouts Args
- 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_ stringbalancer_ id - ID of the resource.
- timeouts object
- origin
Groups List<TeoLoad Balancer Origin Group> - 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 TeoLoad Balancer Health Checker - 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 StringBalancer Id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts
- origin
Groups TeoLoad Balancer Origin Group[] - 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 TeoLoad Balancer Health Checker - 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 stringBalancer Id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts
- origin_
groups Sequence[TeoLoad Balancer Origin Group Args] - 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 TeoLoad Balancer Health Checker Args - 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_ strbalancer_ id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts Args
- origin
Groups 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). - 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 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,_,-. - steering
Policy String - Traffic steering policy between origin groups. Valid value:
Pritory(failover by priority). Default:Pritory. - teo
Load StringBalancer Id - 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.
- Instance
Id 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.
- instance_
id 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.
- instance
Id 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.
- instance
Id 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) -> TeoLoadBalancerfunc 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.
- 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 TeoLoad Balancer Health Checker - 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<TeoLoad Balancer Origin Group> - 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 stringBalancer Id - ID of the resource.
- Timeouts
Teo
Load Balancer Timeouts - 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 TeoLoad Balancer Health Checker Args - 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 []TeoLoad Balancer Origin Group Args - 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 stringBalancer Id - ID of the resource.
- Timeouts
Teo
Load Balancer Timeouts Args - 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.
- 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_ stringbalancer_ id - 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.
- 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 TeoLoad Balancer Health Checker - 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<TeoLoad Balancer Origin Group> - 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 StringBalancer Id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts - 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 TeoLoad Balancer Health Checker - 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 TeoLoad Balancer Origin Group[] - 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 stringBalancer Id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts - 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 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 TeoLoad Balancer Health Checker Args - 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[TeoLoad Balancer Origin Group Args] - 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_ strbalancer_ id - ID of the resource.
- timeouts
Teo
Load Balancer Timeouts Args - 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 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 Property Map - 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<Property Map> - 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 StringBalancer Id - 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). - zone
Id String - Site ID.
Supporting Types
TeoLoadBalancerHealthChecker, TeoLoadBalancerHealthCheckerArgs
- Type string
- Health check type. Valid values:
HTTP,HTTPS,TCP,UDP,ICMP Ping,NoCheck.NoCheckmeans health check is disabled. - Critical
Threshold double - Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
- Expected
Codes List<string> - Expected response status codes, valid when
typeisHTTPorHTTPS. e.g.,["200", "301"]. - Follow
Redirect string - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - Headers
List<Teo
Load Balancer Health Checker Header> - Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - Health
Threshold 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - Path string
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - Port double
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - Recv
Context string - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - Send
Context string - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans health check is disabled. - Critical
Threshold float64 - Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
- Expected
Codes []string - Expected response status codes, valid when
typeisHTTPorHTTPS. e.g.,["200", "301"]. - Follow
Redirect string - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - Headers
[]Teo
Load Balancer Health Checker Header - Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - Health
Threshold 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - Path string
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - Port float64
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - Recv
Context string - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - Send
Context string - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans 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
typeisHTTPorHTTPS. e.g.,["200", "301"]. - follow_
redirect string - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - headers list(object)
- Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - path string
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - port number
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - recv_
context string - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - send_
context string - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans health check is disabled. - critical
Threshold Double - Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
- expected
Codes List<String> - Expected response status codes, valid when
typeisHTTPorHTTPS. e.g.,["200", "301"]. - follow
Redirect String - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - headers
List<Teo
Load Balancer Health Checker Header> - Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - health
Threshold 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - path String
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - port Double
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - recv
Context String - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - send
Context String - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans health check is disabled. - critical
Threshold number - Number of consecutive unhealthy results to mark the origin as unhealthy. Default: 2.
- expected
Codes string[] - Expected response status codes, valid when
typeisHTTPorHTTPS. e.g.,["200", "301"]. - follow
Redirect string - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - headers
Teo
Load Balancer Health Checker Header[] - Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - path string
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - port number
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - recv
Context string - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - send
Context string - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans 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
typeisHTTPorHTTPS. e.g.,["200", "301"]. - follow_
redirect str - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - headers
Sequence[Teo
Load Balancer Health Checker Header] - Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - path str
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - port float
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - recv_
context str - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - send_
context str - Content to send during health check, valid when
typeisUDP. 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.NoCheckmeans 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
typeisHTTPorHTTPS. e.g.,["200", "301"]. - follow
Redirect String - Whether to follow 301/302 redirects, valid when
typeisHTTPorHTTPS. Valid values:true,false. - headers List<Property Map>
- Custom HTTP request headers (up to 10), valid when
typeisHTTPorHTTPS. - 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
typeisHTTPorHTTPS. Valid values:GET,HEAD. - path String
- Probe path, valid when
typeisHTTPorHTTPS. Full host/path without protocol, e.g.,www.example.com/test. - port Number
- Check port. Required when
typeisHTTP,HTTPS,TCP, orUDP. - recv
Context String - Expected response content from origin, valid when
typeisUDP. Only ASCII visible characters allowed, max length 500. - send
Context String - Content to send during health check, valid when
typeisUDP. 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
TeoLoadBalancerOriginGroup, TeoLoadBalancerOriginGroupArgs
- Origin
Group stringId - Origin group ID.
- Priority string
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- Origin
Group stringId - Origin group ID.
- Priority string
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- origin_
group_ stringid - Origin group ID.
- priority string
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- origin
Group StringId - Origin group ID.
- priority String
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- origin
Group stringId - Origin group ID.
- priority string
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- origin_
group_ strid - Origin group ID.
- priority str
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
- origin
Group StringId - Origin group ID.
- priority String
- Priority, format:
priority_+ number, highest priority ispriority_1. Valid values:priority_1,priority_2...,priority_10.
TeoLoadBalancerTimeouts, TeoLoadBalancerTimeoutsArgs
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
tencentcloudTerraform Provider.
published on Monday, May 11, 2026 by tencentcloudstack
