published on Wednesday, Mar 25, 2026 by tencentcloudstack
published on Wednesday, Mar 25, 2026 by tencentcloudstack
Provides a resource to create a CLB target group.
NOTE: Currently,
v1target group is not supported sethealth_checkanymore, Please usev2target group.
Example Usage
Create V1 target group and tags
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const test = new tencentcloud.ClbTargetGroup("test", {
targetGroupName: "test-v1",
port: 80,
type: "v1",
tags: {
createdBy: "terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
test = tencentcloud.ClbTargetGroup("test",
target_group_name="test-v1",
port=80,
type="v1",
tags={
"createdBy": "terraform",
})
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.NewClbTargetGroup(ctx, "test", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("test-v1"),
Port: pulumi.Float64(80),
Type: pulumi.String("v1"),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
})
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 test = new Tencentcloud.ClbTargetGroup("test", new()
{
TargetGroupName = "test-v1",
Port = 80,
Type = "v1",
Tags =
{
{ "createdBy", "terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
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 test = new ClbTargetGroup("test", ClbTargetGroupArgs.builder()
.targetGroupName("test-v1")
.port(80.0)
.type("v1")
.tags(Map.of("createdBy", "terraform"))
.build());
}
}
resources:
test:
type: tencentcloud:ClbTargetGroup
properties:
targetGroupName: test-v1
port: 80
type: v1
tags:
createdBy: terraform
Create V2 TCP target group with TCP health check
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const tcpTg = new tencentcloud.ClbTargetGroup("tcp_tg", {
targetGroupName: "tcp_tg",
vpcId: "vpc-xxxxxx",
type: "v2",
protocol: "TCP",
healthCheck: {
healthSwitch: true,
protocol: "TCP",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
tcp_tg = tencentcloud.ClbTargetGroup("tcp_tg",
target_group_name="tcp_tg",
vpc_id="vpc-xxxxxx",
type="v2",
protocol="TCP",
health_check={
"health_switch": True,
"protocol": "TCP",
})
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.NewClbTargetGroup(ctx, "tcp_tg", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("tcp_tg"),
VpcId: pulumi.String("vpc-xxxxxx"),
Type: pulumi.String("v2"),
Protocol: pulumi.String("TCP"),
HealthCheck: &tencentcloud.ClbTargetGroupHealthCheckArgs{
HealthSwitch: pulumi.Bool(true),
Protocol: pulumi.String("TCP"),
},
})
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 tcpTg = new Tencentcloud.ClbTargetGroup("tcp_tg", new()
{
TargetGroupName = "tcp_tg",
VpcId = "vpc-xxxxxx",
Type = "v2",
Protocol = "TCP",
HealthCheck = new Tencentcloud.Inputs.ClbTargetGroupHealthCheckArgs
{
HealthSwitch = true,
Protocol = "TCP",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.inputs.ClbTargetGroupHealthCheckArgs;
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 tcpTg = new ClbTargetGroup("tcpTg", ClbTargetGroupArgs.builder()
.targetGroupName("tcp_tg")
.vpcId("vpc-xxxxxx")
.type("v2")
.protocol("TCP")
.healthCheck(ClbTargetGroupHealthCheckArgs.builder()
.healthSwitch(true)
.protocol("TCP")
.build())
.build());
}
}
resources:
tcpTg:
type: tencentcloud:ClbTargetGroup
name: tcp_tg
properties:
targetGroupName: tcp_tg
vpcId: vpc-xxxxxx
type: v2
protocol: TCP
healthCheck:
healthSwitch: true
protocol: TCP
Create V2 target group with advanced features
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const testV2 = new tencentcloud.ClbTargetGroup("test_v2", {
targetGroupName: "test-v2",
vpcId: "vpc-xxxxxx",
port: 80,
type: "v2",
protocol: "HTTP",
scheduleAlgorithm: "WRR",
sessionExpireTime: 1800,
keepaliveEnable: true,
weight: 50,
healthCheck: {
healthSwitch: true,
protocol: "HTTP",
port: 8080,
timeout: 5,
gapTime: 11,
goodLimit: 4,
badLimit: 4,
httpCheckPath: "/health",
httpCheckMethod: "GET",
httpCheckDomain: "test.com",
httpCode: 2,
},
tags: {
createdBy: "terraform",
env: "production",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
test_v2 = tencentcloud.ClbTargetGroup("test_v2",
target_group_name="test-v2",
vpc_id="vpc-xxxxxx",
port=80,
type="v2",
protocol="HTTP",
schedule_algorithm="WRR",
session_expire_time=1800,
keepalive_enable=True,
weight=50,
health_check={
"health_switch": True,
"protocol": "HTTP",
"port": 8080,
"timeout": 5,
"gap_time": 11,
"good_limit": 4,
"bad_limit": 4,
"http_check_path": "/health",
"http_check_method": "GET",
"http_check_domain": "test.com",
"http_code": 2,
},
tags={
"createdBy": "terraform",
"env": "production",
})
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.NewClbTargetGroup(ctx, "test_v2", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("test-v2"),
VpcId: pulumi.String("vpc-xxxxxx"),
Port: pulumi.Float64(80),
Type: pulumi.String("v2"),
Protocol: pulumi.String("HTTP"),
ScheduleAlgorithm: pulumi.String("WRR"),
SessionExpireTime: pulumi.Float64(1800),
KeepaliveEnable: pulumi.Bool(true),
Weight: pulumi.Float64(50),
HealthCheck: &tencentcloud.ClbTargetGroupHealthCheckArgs{
HealthSwitch: pulumi.Bool(true),
Protocol: pulumi.String("HTTP"),
Port: pulumi.Float64(8080),
Timeout: pulumi.Float64(5),
GapTime: pulumi.Float64(11),
GoodLimit: pulumi.Float64(4),
BadLimit: pulumi.Float64(4),
HttpCheckPath: pulumi.String("/health"),
HttpCheckMethod: pulumi.String("GET"),
HttpCheckDomain: pulumi.String("test.com"),
HttpCode: pulumi.Float64(2),
},
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
"env": pulumi.String("production"),
},
})
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 testV2 = new Tencentcloud.ClbTargetGroup("test_v2", new()
{
TargetGroupName = "test-v2",
VpcId = "vpc-xxxxxx",
Port = 80,
Type = "v2",
Protocol = "HTTP",
ScheduleAlgorithm = "WRR",
SessionExpireTime = 1800,
KeepaliveEnable = true,
Weight = 50,
HealthCheck = new Tencentcloud.Inputs.ClbTargetGroupHealthCheckArgs
{
HealthSwitch = true,
Protocol = "HTTP",
Port = 8080,
Timeout = 5,
GapTime = 11,
GoodLimit = 4,
BadLimit = 4,
HttpCheckPath = "/health",
HttpCheckMethod = "GET",
HttpCheckDomain = "test.com",
HttpCode = 2,
},
Tags =
{
{ "createdBy", "terraform" },
{ "env", "production" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.inputs.ClbTargetGroupHealthCheckArgs;
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 testV2 = new ClbTargetGroup("testV2", ClbTargetGroupArgs.builder()
.targetGroupName("test-v2")
.vpcId("vpc-xxxxxx")
.port(80.0)
.type("v2")
.protocol("HTTP")
.scheduleAlgorithm("WRR")
.sessionExpireTime(1800.0)
.keepaliveEnable(true)
.weight(50.0)
.healthCheck(ClbTargetGroupHealthCheckArgs.builder()
.healthSwitch(true)
.protocol("HTTP")
.port(8080.0)
.timeout(5.0)
.gapTime(11.0)
.goodLimit(4.0)
.badLimit(4.0)
.httpCheckPath("/health")
.httpCheckMethod("GET")
.httpCheckDomain("test.com")
.httpCode(2.0)
.build())
.tags(Map.ofEntries(
Map.entry("createdBy", "terraform"),
Map.entry("env", "production")
))
.build());
}
}
resources:
testV2:
type: tencentcloud:ClbTargetGroup
name: test_v2
properties:
targetGroupName: test-v2
vpcId: vpc-xxxxxx
port: 80
type: v2
protocol: HTTP
scheduleAlgorithm: WRR
sessionExpireTime: 1800
keepaliveEnable: true
weight: 50
healthCheck:
healthSwitch: true
protocol: HTTP
port: 8080
timeout: 5
gapTime: 11
goodLimit: 4
badLimit: 4
httpCheckPath: /health
httpCheckMethod: GET
httpCheckDomain: test.com
httpCode: 2
tags:
createdBy: terraform
env: production
Create V2 HTTP target group with IP hash scheduling
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const ipHash = new tencentcloud.ClbTargetGroup("ip_hash", {
targetGroupName: "ip-hash-tg",
vpcId: "vpc-xxxxxxx",
type: "v2",
protocol: "HTTP",
scheduleAlgorithm: "IP_HASH",
ipVersion: "IPv4",
healthCheck: {
healthSwitch: true,
protocol: "HTTP",
httpCheckDomain: "test.com",
timeout: 5,
gapTime: 11,
goodLimit: 4,
badLimit: 4,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
ip_hash = tencentcloud.ClbTargetGroup("ip_hash",
target_group_name="ip-hash-tg",
vpc_id="vpc-xxxxxxx",
type="v2",
protocol="HTTP",
schedule_algorithm="IP_HASH",
ip_version="IPv4",
health_check={
"health_switch": True,
"protocol": "HTTP",
"http_check_domain": "test.com",
"timeout": 5,
"gap_time": 11,
"good_limit": 4,
"bad_limit": 4,
})
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.NewClbTargetGroup(ctx, "ip_hash", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("ip-hash-tg"),
VpcId: pulumi.String("vpc-xxxxxxx"),
Type: pulumi.String("v2"),
Protocol: pulumi.String("HTTP"),
ScheduleAlgorithm: pulumi.String("IP_HASH"),
IpVersion: pulumi.String("IPv4"),
HealthCheck: &tencentcloud.ClbTargetGroupHealthCheckArgs{
HealthSwitch: pulumi.Bool(true),
Protocol: pulumi.String("HTTP"),
HttpCheckDomain: pulumi.String("test.com"),
Timeout: pulumi.Float64(5),
GapTime: pulumi.Float64(11),
GoodLimit: pulumi.Float64(4),
BadLimit: pulumi.Float64(4),
},
})
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 ipHash = new Tencentcloud.ClbTargetGroup("ip_hash", new()
{
TargetGroupName = "ip-hash-tg",
VpcId = "vpc-xxxxxxx",
Type = "v2",
Protocol = "HTTP",
ScheduleAlgorithm = "IP_HASH",
IpVersion = "IPv4",
HealthCheck = new Tencentcloud.Inputs.ClbTargetGroupHealthCheckArgs
{
HealthSwitch = true,
Protocol = "HTTP",
HttpCheckDomain = "test.com",
Timeout = 5,
GapTime = 11,
GoodLimit = 4,
BadLimit = 4,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.inputs.ClbTargetGroupHealthCheckArgs;
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 ipHash = new ClbTargetGroup("ipHash", ClbTargetGroupArgs.builder()
.targetGroupName("ip-hash-tg")
.vpcId("vpc-xxxxxxx")
.type("v2")
.protocol("HTTP")
.scheduleAlgorithm("IP_HASH")
.ipVersion("IPv4")
.healthCheck(ClbTargetGroupHealthCheckArgs.builder()
.healthSwitch(true)
.protocol("HTTP")
.httpCheckDomain("test.com")
.timeout(5.0)
.gapTime(11.0)
.goodLimit(4.0)
.badLimit(4.0)
.build())
.build());
}
}
resources:
ipHash:
type: tencentcloud:ClbTargetGroup
name: ip_hash
properties:
targetGroupName: ip-hash-tg
vpcId: vpc-xxxxxxx
type: v2
protocol: HTTP
scheduleAlgorithm: IP_HASH
ipVersion: IPv4
healthCheck:
healthSwitch: true
protocol: HTTP
httpCheckDomain: test.com
timeout: 5
gapTime: 11
goodLimit: 4
badLimit: 4
Create V2 full listener target group
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fullListener = new tencentcloud.ClbTargetGroup("full_listener", {
targetGroupName: "full-listener-tg",
vpcId: "vpc-xxxxxx",
type: "v2",
protocol: "TCP",
fullListenSwitch: true,
healthCheck: {
healthSwitch: true,
protocol: "HTTP",
httpVersion: "HTTP/1.1",
httpCheckPath: "/healthz",
httpCheckDomain: "test.com",
timeout: 5,
gapTime: 11,
goodLimit: 4,
badLimit: 4,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
full_listener = tencentcloud.ClbTargetGroup("full_listener",
target_group_name="full-listener-tg",
vpc_id="vpc-xxxxxx",
type="v2",
protocol="TCP",
full_listen_switch=True,
health_check={
"health_switch": True,
"protocol": "HTTP",
"http_version": "HTTP/1.1",
"http_check_path": "/healthz",
"http_check_domain": "test.com",
"timeout": 5,
"gap_time": 11,
"good_limit": 4,
"bad_limit": 4,
})
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.NewClbTargetGroup(ctx, "full_listener", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("full-listener-tg"),
VpcId: pulumi.String("vpc-xxxxxx"),
Type: pulumi.String("v2"),
Protocol: pulumi.String("TCP"),
FullListenSwitch: pulumi.Bool(true),
HealthCheck: &tencentcloud.ClbTargetGroupHealthCheckArgs{
HealthSwitch: pulumi.Bool(true),
Protocol: pulumi.String("HTTP"),
HttpVersion: pulumi.String("HTTP/1.1"),
HttpCheckPath: pulumi.String("/healthz"),
HttpCheckDomain: pulumi.String("test.com"),
Timeout: pulumi.Float64(5),
GapTime: pulumi.Float64(11),
GoodLimit: pulumi.Float64(4),
BadLimit: pulumi.Float64(4),
},
})
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 fullListener = new Tencentcloud.ClbTargetGroup("full_listener", new()
{
TargetGroupName = "full-listener-tg",
VpcId = "vpc-xxxxxx",
Type = "v2",
Protocol = "TCP",
FullListenSwitch = true,
HealthCheck = new Tencentcloud.Inputs.ClbTargetGroupHealthCheckArgs
{
HealthSwitch = true,
Protocol = "HTTP",
HttpVersion = "HTTP/1.1",
HttpCheckPath = "/healthz",
HttpCheckDomain = "test.com",
Timeout = 5,
GapTime = 11,
GoodLimit = 4,
BadLimit = 4,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.inputs.ClbTargetGroupHealthCheckArgs;
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 fullListener = new ClbTargetGroup("fullListener", ClbTargetGroupArgs.builder()
.targetGroupName("full-listener-tg")
.vpcId("vpc-xxxxxx")
.type("v2")
.protocol("TCP")
.fullListenSwitch(true)
.healthCheck(ClbTargetGroupHealthCheckArgs.builder()
.healthSwitch(true)
.protocol("HTTP")
.httpVersion("HTTP/1.1")
.httpCheckPath("/healthz")
.httpCheckDomain("test.com")
.timeout(5.0)
.gapTime(11.0)
.goodLimit(4.0)
.badLimit(4.0)
.build())
.build());
}
}
resources:
fullListener:
type: tencentcloud:ClbTargetGroup
name: full_listener
properties:
targetGroupName: full-listener-tg
vpcId: vpc-xxxxxx
type: v2
protocol: TCP
fullListenSwitch: true
healthCheck:
healthSwitch: true
protocol: HTTP
httpVersion: HTTP/1.1
httpCheckPath: /healthz
httpCheckDomain: test.com
timeout: 5
gapTime: 11
goodLimit: 4
badLimit: 4
Create IPv6 target group
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const ipv6 = new tencentcloud.ClbTargetGroup("ipv6", {
targetGroupName: "ipv6-tg",
vpcId: "vpc-xxxxxx",
type: "v2",
protocol: "HTTP",
ipVersion: "IPv6",
healthCheck: {
healthSwitch: true,
protocol: "HTTP",
httpCheckDomain: "test.com",
timeout: 5,
gapTime: 11,
goodLimit: 4,
badLimit: 4,
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
ipv6 = tencentcloud.ClbTargetGroup("ipv6",
target_group_name="ipv6-tg",
vpc_id="vpc-xxxxxx",
type="v2",
protocol="HTTP",
ip_version="IPv6",
health_check={
"health_switch": True,
"protocol": "HTTP",
"http_check_domain": "test.com",
"timeout": 5,
"gap_time": 11,
"good_limit": 4,
"bad_limit": 4,
})
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.NewClbTargetGroup(ctx, "ipv6", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("ipv6-tg"),
VpcId: pulumi.String("vpc-xxxxxx"),
Type: pulumi.String("v2"),
Protocol: pulumi.String("HTTP"),
IpVersion: pulumi.String("IPv6"),
HealthCheck: &tencentcloud.ClbTargetGroupHealthCheckArgs{
HealthSwitch: pulumi.Bool(true),
Protocol: pulumi.String("HTTP"),
HttpCheckDomain: pulumi.String("test.com"),
Timeout: pulumi.Float64(5),
GapTime: pulumi.Float64(11),
GoodLimit: pulumi.Float64(4),
BadLimit: pulumi.Float64(4),
},
})
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 ipv6 = new Tencentcloud.ClbTargetGroup("ipv6", new()
{
TargetGroupName = "ipv6-tg",
VpcId = "vpc-xxxxxx",
Type = "v2",
Protocol = "HTTP",
IpVersion = "IPv6",
HealthCheck = new Tencentcloud.Inputs.ClbTargetGroupHealthCheckArgs
{
HealthSwitch = true,
Protocol = "HTTP",
HttpCheckDomain = "test.com",
Timeout = 5,
GapTime = 11,
GoodLimit = 4,
BadLimit = 4,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.inputs.ClbTargetGroupHealthCheckArgs;
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 ipv6 = new ClbTargetGroup("ipv6", ClbTargetGroupArgs.builder()
.targetGroupName("ipv6-tg")
.vpcId("vpc-xxxxxx")
.type("v2")
.protocol("HTTP")
.ipVersion("IPv6")
.healthCheck(ClbTargetGroupHealthCheckArgs.builder()
.healthSwitch(true)
.protocol("HTTP")
.httpCheckDomain("test.com")
.timeout(5.0)
.gapTime(11.0)
.goodLimit(4.0)
.badLimit(4.0)
.build())
.build());
}
}
resources:
ipv6:
type: tencentcloud:ClbTargetGroup
properties:
targetGroupName: ipv6-tg
vpcId: vpc-xxxxxx
type: v2
protocol: HTTP
ipVersion: IPv6
healthCheck:
healthSwitch: true
protocol: HTTP
httpCheckDomain: test.com
timeout: 5
gapTime: 11
goodLimit: 4
badLimit: 4
Create ClbTargetGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClbTargetGroup(name: string, args?: ClbTargetGroupArgs, opts?: CustomResourceOptions);@overload
def ClbTargetGroup(resource_name: str,
args: Optional[ClbTargetGroupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ClbTargetGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
clb_target_group_id: Optional[str] = None,
full_listen_switch: Optional[bool] = None,
health_check: Optional[ClbTargetGroupHealthCheckArgs] = None,
ip_version: Optional[str] = None,
keepalive_enable: Optional[bool] = None,
port: Optional[float] = None,
protocol: Optional[str] = None,
schedule_algorithm: Optional[str] = None,
session_expire_time: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
target_group_instances: Optional[Sequence[ClbTargetGroupTargetGroupInstanceArgs]] = None,
target_group_name: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
weight: Optional[float] = None)func NewClbTargetGroup(ctx *Context, name string, args *ClbTargetGroupArgs, opts ...ResourceOption) (*ClbTargetGroup, error)public ClbTargetGroup(string name, ClbTargetGroupArgs? args = null, CustomResourceOptions? opts = null)
public ClbTargetGroup(String name, ClbTargetGroupArgs args)
public ClbTargetGroup(String name, ClbTargetGroupArgs args, CustomResourceOptions options)
type: tencentcloud:ClbTargetGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ClbTargetGroupArgs
- 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 ClbTargetGroupArgs
- 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 ClbTargetGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbTargetGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbTargetGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClbTargetGroup 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 ClbTargetGroup resource accepts the following input properties:
- Clb
Target stringGroup Id - ID of the resource.
- Full
Listen boolSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- Health
Check ClbTarget Group Health Check - Health check configuration.
- Ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- Keepalive
Enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- Port double
- The default port of target group, add server after can use it.
- Protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- Schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- Session
Expire doubleTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Dictionary<string, string>
- Resource tags for the target group.
- Target
Group List<ClbInstances Target Group Target Group Instance> - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - Target
Group stringName - Target group name.
- Type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- Vpc
Id string - VPC ID, default is based on the network.
- Weight double
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- Clb
Target stringGroup Id - ID of the resource.
- Full
Listen boolSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- Health
Check ClbTarget Group Health Check Args - Health check configuration.
- Ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- Keepalive
Enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- Port float64
- The default port of target group, add server after can use it.
- Protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- Schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- Session
Expire float64Time - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- map[string]string
- Resource tags for the target group.
- Target
Group []ClbInstances Target Group Target Group Instance Args - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - Target
Group stringName - Target group name.
- Type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- Vpc
Id string - VPC ID, default is based on the network.
- Weight float64
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target StringGroup Id - ID of the resource.
- full
Listen BooleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check ClbTarget Group Health Check - Health check configuration.
- ip
Version String - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable Boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port Double
- The default port of target group, add server after can use it.
- protocol String
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm String - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire DoubleTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Map<String,String>
- Resource tags for the target group.
- target
Group List<ClbInstances Target Group Target Group Instance> - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group StringName - Target group name.
- type String
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id String - VPC ID, default is based on the network.
- weight Double
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target stringGroup Id - ID of the resource.
- full
Listen booleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check ClbTarget Group Health Check - Health check configuration.
- ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port number
- The default port of target group, add server after can use it.
- protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire numberTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- {[key: string]: string}
- Resource tags for the target group.
- target
Group ClbInstances Target Group Target Group Instance[] - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group stringName - Target group name.
- type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id string - VPC ID, default is based on the network.
- weight number
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb_
target_ strgroup_ id - ID of the resource.
- full_
listen_ boolswitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health_
check ClbTarget Group Health Check Args - Health check configuration.
- ip_
version str - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive_
enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port float
- The default port of target group, add server after can use it.
- protocol str
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule_
algorithm str - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session_
expire_ floattime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Mapping[str, str]
- Resource tags for the target group.
- target_
group_ Sequence[Clbinstances Target Group Target Group Instance Args] - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target_
group_ strname - Target group name.
- type str
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc_
id str - VPC ID, default is based on the network.
- weight float
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target StringGroup Id - ID of the resource.
- full
Listen BooleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check Property Map - Health check configuration.
- ip
Version String - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable Boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port Number
- The default port of target group, add server after can use it.
- protocol String
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm String - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire NumberTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Map<String>
- Resource tags for the target group.
- target
Group List<Property Map>Instances - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group StringName - Target group name.
- type String
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id String - VPC ID, default is based on the network.
- weight Number
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClbTargetGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ClbTargetGroup Resource
Get an existing ClbTargetGroup 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?: ClbTargetGroupState, opts?: CustomResourceOptions): ClbTargetGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
clb_target_group_id: Optional[str] = None,
full_listen_switch: Optional[bool] = None,
health_check: Optional[ClbTargetGroupHealthCheckArgs] = None,
ip_version: Optional[str] = None,
keepalive_enable: Optional[bool] = None,
port: Optional[float] = None,
protocol: Optional[str] = None,
schedule_algorithm: Optional[str] = None,
session_expire_time: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
target_group_instances: Optional[Sequence[ClbTargetGroupTargetGroupInstanceArgs]] = None,
target_group_name: Optional[str] = None,
type: Optional[str] = None,
vpc_id: Optional[str] = None,
weight: Optional[float] = None) -> ClbTargetGroupfunc GetClbTargetGroup(ctx *Context, name string, id IDInput, state *ClbTargetGroupState, opts ...ResourceOption) (*ClbTargetGroup, error)public static ClbTargetGroup Get(string name, Input<string> id, ClbTargetGroupState? state, CustomResourceOptions? opts = null)public static ClbTargetGroup get(String name, Output<String> id, ClbTargetGroupState state, CustomResourceOptions options)resources: _: type: tencentcloud:ClbTargetGroup get: 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.
- Clb
Target stringGroup Id - ID of the resource.
- Full
Listen boolSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- Health
Check ClbTarget Group Health Check - Health check configuration.
- Ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- Keepalive
Enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- Port double
- The default port of target group, add server after can use it.
- Protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- Schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- Session
Expire doubleTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Dictionary<string, string>
- Resource tags for the target group.
- Target
Group List<ClbInstances Target Group Target Group Instance> - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - Target
Group stringName - Target group name.
- Type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- Vpc
Id string - VPC ID, default is based on the network.
- Weight double
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- Clb
Target stringGroup Id - ID of the resource.
- Full
Listen boolSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- Health
Check ClbTarget Group Health Check Args - Health check configuration.
- Ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- Keepalive
Enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- Port float64
- The default port of target group, add server after can use it.
- Protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- Schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- Session
Expire float64Time - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- map[string]string
- Resource tags for the target group.
- Target
Group []ClbInstances Target Group Target Group Instance Args - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - Target
Group stringName - Target group name.
- Type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- Vpc
Id string - VPC ID, default is based on the network.
- Weight float64
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target StringGroup Id - ID of the resource.
- full
Listen BooleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check ClbTarget Group Health Check - Health check configuration.
- ip
Version String - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable Boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port Double
- The default port of target group, add server after can use it.
- protocol String
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm String - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire DoubleTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Map<String,String>
- Resource tags for the target group.
- target
Group List<ClbInstances Target Group Target Group Instance> - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group StringName - Target group name.
- type String
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id String - VPC ID, default is based on the network.
- weight Double
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target stringGroup Id - ID of the resource.
- full
Listen booleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check ClbTarget Group Health Check - Health check configuration.
- ip
Version string - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port number
- The default port of target group, add server after can use it.
- protocol string
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm string - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire numberTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- {[key: string]: string}
- Resource tags for the target group.
- target
Group ClbInstances Target Group Target Group Instance[] - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group stringName - Target group name.
- type string
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id string - VPC ID, default is based on the network.
- weight number
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb_
target_ strgroup_ id - ID of the resource.
- full_
listen_ boolswitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health_
check ClbTarget Group Health Check Args - Health check configuration.
- ip_
version str - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive_
enable bool - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port float
- The default port of target group, add server after can use it.
- protocol str
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule_
algorithm str - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session_
expire_ floattime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Mapping[str, str]
- Resource tags for the target group.
- target_
group_ Sequence[Clbinstances Target Group Target Group Instance Args] - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target_
group_ strname - Target group name.
- type str
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc_
id str - VPC ID, default is based on the network.
- weight float
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
- clb
Target StringGroup Id - ID of the resource.
- full
Listen BooleanSwitch - Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
- health
Check Property Map - Health check configuration.
- ip
Version String - IP version type. Common values: IPv4, IPv6, IPv6FullChain.
- keepalive
Enable Boolean - Enable keep-alive connections. Only valid for HTTP/HTTPS target groups. true: enable, false: disable. Default: false.
- port Number
- The default port of target group, add server after can use it.
- protocol String
- Backend forwarding protocol of the target group. this field is required for the new version (v2) target group. currently supports TCP, UDP, HTTP, HTTPS, GRPC.
- schedule
Algorithm String - Scheduling algorithm. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Valid values: WRR (weighted round robin), LEAST_CONN (least connections), IP_HASH (IP hash). Default: WRR.
- session
Expire NumberTime - Session persistence time in seconds. Only valid for v2 target groups with HTTP/HTTPS/GRPC protocols. Range: 30-3600 or 0 (disabled). Default: 0 (disabled).
- Map<String>
- Resource tags for the target group.
- target
Group List<Property Map>Instances - It has been deprecated from version 1.77.3. please use
tencentcloud.ClbTargetGroupInstanceAttachmentinstead. The backend server of target group bind. - target
Group StringName - Target group name.
- type String
- Target group type, currently supported v1 (legacy version target group) and v2 (new version target group), defaults to v1 (legacy version target group).
- vpc
Id String - VPC ID, default is based on the network.
- weight Number
- Default backend server weight. Range: [0, 100]. Only valid for v2 target groups. When set, backend servers added to the target group will use this default weight if not specified.
Supporting Types
ClbTargetGroupHealthCheck, ClbTargetGroupHealthCheckArgs
- Health
Switch bool - Whether to enable health check. true: enable, false: disable.
- Bad
Limit double - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- Extended
Code string - Extended status code for health check.
- Gap
Time double - Health check interval in seconds. Range: [2, 300]. Default: 5.
- Good
Limit double - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- Http
Check stringDomain - Health check domain. For HTTP/HTTPS protocol.
- Http
Check stringMethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- Http
Check stringPath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- Http
Code double - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- Http
Version string - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- Port double
- Health check port. If not specified, the backend server port is used by default.
- Protocol string
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- Timeout double
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
- Health
Switch bool - Whether to enable health check. true: enable, false: disable.
- Bad
Limit float64 - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- Extended
Code string - Extended status code for health check.
- Gap
Time float64 - Health check interval in seconds. Range: [2, 300]. Default: 5.
- Good
Limit float64 - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- Http
Check stringDomain - Health check domain. For HTTP/HTTPS protocol.
- Http
Check stringMethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- Http
Check stringPath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- Http
Code float64 - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- Http
Version string - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- Port float64
- Health check port. If not specified, the backend server port is used by default.
- Protocol string
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- Timeout float64
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
- health
Switch Boolean - Whether to enable health check. true: enable, false: disable.
- bad
Limit Double - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- extended
Code String - Extended status code for health check.
- gap
Time Double - Health check interval in seconds. Range: [2, 300]. Default: 5.
- good
Limit Double - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- http
Check StringDomain - Health check domain. For HTTP/HTTPS protocol.
- http
Check StringMethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- http
Check StringPath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- http
Code Double - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- http
Version String - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- port Double
- Health check port. If not specified, the backend server port is used by default.
- protocol String
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- timeout Double
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
- health
Switch boolean - Whether to enable health check. true: enable, false: disable.
- bad
Limit number - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- extended
Code string - Extended status code for health check.
- gap
Time number - Health check interval in seconds. Range: [2, 300]. Default: 5.
- good
Limit number - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- http
Check stringDomain - Health check domain. For HTTP/HTTPS protocol.
- http
Check stringMethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- http
Check stringPath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- http
Code number - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- http
Version string - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- port number
- Health check port. If not specified, the backend server port is used by default.
- protocol string
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- timeout number
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
- health_
switch bool - Whether to enable health check. true: enable, false: disable.
- bad_
limit float - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- extended_
code str - Extended status code for health check.
- gap_
time float - Health check interval in seconds. Range: [2, 300]. Default: 5.
- good_
limit float - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- http_
check_ strdomain - Health check domain. For HTTP/HTTPS protocol.
- http_
check_ strmethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- http_
check_ strpath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- http_
code float - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- http_
version str - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- port float
- Health check port. If not specified, the backend server port is used by default.
- protocol str
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- timeout float
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
- health
Switch Boolean - Whether to enable health check. true: enable, false: disable.
- bad
Limit Number - Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
- extended
Code String - Extended status code for health check.
- gap
Time Number - Health check interval in seconds. Range: [2, 300]. Default: 5.
- good
Limit Number - Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
- http
Check StringDomain - Health check domain. For HTTP/HTTPS protocol.
- http
Check StringMethod - Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
- http
Check StringPath - Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
- http
Code Number - HTTP status codes indicating health. For HTTP/HTTPS protocol. Example: 1 (1xx), 2 (2xx), 4 (3xx), 8 (4xx), 16 (5xx). Multiple values can be combined, e.g., 7 (1xx, 2xx, 3xx).
- http
Version String - HTTP version for health check. Required when health check protocol is HTTP. Valid values: HTTP/1.0, HTTP/1.1. Only valid for TCP target groups.
- port Number
- Health check port. If not specified, the backend server port is used by default.
- protocol String
- Health check protocol. Valid values: TCP, HTTP, HTTPS, PING, CUSTOM, GRPC. Valid for v2 target groups.
- timeout Number
- Health check response timeout in seconds. Range: [2, 60]. Default: 2.
ClbTargetGroupTargetGroupInstance, ClbTargetGroupTargetGroupInstanceArgs
Import
CLB target group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clbTargetGroup:ClbTargetGroup test lbtg-3k3io0i0
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 Wednesday, Mar 25, 2026 by tencentcloudstack
