1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClbTargetGroup
Viewing docs for tencentcloud 1.82.78
published on Wednesday, Mar 25, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.78
published on Wednesday, Mar 25, 2026 by tencentcloudstack

    Provides a resource to create a CLB target group.

    NOTE: Currently, v1 target group is not supported set health_check anymore, Please use v2 target 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:

    ClbTargetGroupId string
    ID of the resource.
    FullListenSwitch bool
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    HealthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    IpVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    KeepaliveEnable 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.
    ScheduleAlgorithm 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.
    SessionExpireTime double
    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).
    Tags Dictionary<string, string>
    Resource tags for the target group.
    TargetGroupInstances List<ClbTargetGroupTargetGroupInstance>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    TargetGroupName string
    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).
    VpcId 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.
    ClbTargetGroupId string
    ID of the resource.
    FullListenSwitch bool
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    HealthCheck ClbTargetGroupHealthCheckArgs
    Health check configuration.
    IpVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    KeepaliveEnable 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.
    ScheduleAlgorithm 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.
    SessionExpireTime float64
    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).
    Tags map[string]string
    Resource tags for the target group.
    TargetGroupInstances []ClbTargetGroupTargetGroupInstanceArgs
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    TargetGroupName string
    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).
    VpcId 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.
    clbTargetGroupId String
    ID of the resource.
    fullListenSwitch Boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    ipVersion String
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime Double
    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).
    tags Map<String,String>
    Resource tags for the target group.
    targetGroupInstances List<ClbTargetGroupTargetGroupInstance>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName String
    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).
    vpcId 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.
    clbTargetGroupId string
    ID of the resource.
    fullListenSwitch boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    ipVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime number
    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).
    tags {[key: string]: string}
    Resource tags for the target group.
    targetGroupInstances ClbTargetGroupTargetGroupInstance[]
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName string
    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).
    vpcId 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_group_id str
    ID of the resource.
    full_listen_switch bool
    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 ClbTargetGroupHealthCheckArgs
    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_time float
    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).
    tags Mapping[str, str]
    Resource tags for the target group.
    target_group_instances Sequence[ClbTargetGroupTargetGroupInstanceArgs]
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    target_group_name str
    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.
    clbTargetGroupId String
    ID of the resource.
    fullListenSwitch Boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck Property Map
    Health check configuration.
    ipVersion String
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime Number
    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).
    tags Map<String>
    Resource tags for the target group.
    targetGroupInstances List<Property Map>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName String
    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).
    vpcId 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) -> ClbTargetGroup
    func 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.
    The following state arguments are supported:
    ClbTargetGroupId string
    ID of the resource.
    FullListenSwitch bool
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    HealthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    IpVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    KeepaliveEnable 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.
    ScheduleAlgorithm 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.
    SessionExpireTime double
    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).
    Tags Dictionary<string, string>
    Resource tags for the target group.
    TargetGroupInstances List<ClbTargetGroupTargetGroupInstance>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    TargetGroupName string
    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).
    VpcId 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.
    ClbTargetGroupId string
    ID of the resource.
    FullListenSwitch bool
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    HealthCheck ClbTargetGroupHealthCheckArgs
    Health check configuration.
    IpVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    KeepaliveEnable 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.
    ScheduleAlgorithm 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.
    SessionExpireTime float64
    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).
    Tags map[string]string
    Resource tags for the target group.
    TargetGroupInstances []ClbTargetGroupTargetGroupInstanceArgs
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    TargetGroupName string
    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).
    VpcId 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.
    clbTargetGroupId String
    ID of the resource.
    fullListenSwitch Boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    ipVersion String
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime Double
    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).
    tags Map<String,String>
    Resource tags for the target group.
    targetGroupInstances List<ClbTargetGroupTargetGroupInstance>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName String
    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).
    vpcId 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.
    clbTargetGroupId string
    ID of the resource.
    fullListenSwitch boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck ClbTargetGroupHealthCheck
    Health check configuration.
    ipVersion string
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime number
    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).
    tags {[key: string]: string}
    Resource tags for the target group.
    targetGroupInstances ClbTargetGroupTargetGroupInstance[]
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName string
    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).
    vpcId 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_group_id str
    ID of the resource.
    full_listen_switch bool
    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 ClbTargetGroupHealthCheckArgs
    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_time float
    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).
    tags Mapping[str, str]
    Resource tags for the target group.
    target_group_instances Sequence[ClbTargetGroupTargetGroupInstanceArgs]
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    target_group_name str
    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.
    clbTargetGroupId String
    ID of the resource.
    fullListenSwitch Boolean
    Whether this is a full listener target group. Only valid for v2 target groups. true: full listener target group, false: normal target group.
    healthCheck Property Map
    Health check configuration.
    ipVersion String
    IP version type. Common values: IPv4, IPv6, IPv6FullChain.
    keepaliveEnable 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.
    scheduleAlgorithm 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.
    sessionExpireTime Number
    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).
    tags Map<String>
    Resource tags for the target group.
    targetGroupInstances List<Property Map>
    It has been deprecated from version 1.77.3. please use tencentcloud.ClbTargetGroupInstanceAttachment instead. The backend server of target group bind.

    Deprecated: Deprecated

    targetGroupName String
    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).
    vpcId 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

    HealthSwitch bool
    Whether to enable health check. true: enable, false: disable.
    BadLimit double
    Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
    ExtendedCode string
    Extended status code for health check.
    GapTime double
    Health check interval in seconds. Range: [2, 300]. Default: 5.
    GoodLimit double
    Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
    HttpCheckDomain string
    Health check domain. For HTTP/HTTPS protocol.
    HttpCheckMethod string
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    HttpCheckPath string
    Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
    HttpCode 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).
    HttpVersion 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.
    HealthSwitch bool
    Whether to enable health check. true: enable, false: disable.
    BadLimit float64
    Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
    ExtendedCode string
    Extended status code for health check.
    GapTime float64
    Health check interval in seconds. Range: [2, 300]. Default: 5.
    GoodLimit float64
    Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
    HttpCheckDomain string
    Health check domain. For HTTP/HTTPS protocol.
    HttpCheckMethod string
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    HttpCheckPath string
    Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
    HttpCode 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).
    HttpVersion 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.
    healthSwitch Boolean
    Whether to enable health check. true: enable, false: disable.
    badLimit Double
    Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
    extendedCode String
    Extended status code for health check.
    gapTime Double
    Health check interval in seconds. Range: [2, 300]. Default: 5.
    goodLimit Double
    Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
    httpCheckDomain String
    Health check domain. For HTTP/HTTPS protocol.
    httpCheckMethod String
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    httpCheckPath String
    Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
    httpCode 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).
    httpVersion 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.
    healthSwitch boolean
    Whether to enable health check. true: enable, false: disable.
    badLimit number
    Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
    extendedCode string
    Extended status code for health check.
    gapTime number
    Health check interval in seconds. Range: [2, 300]. Default: 5.
    goodLimit number
    Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
    httpCheckDomain string
    Health check domain. For HTTP/HTTPS protocol.
    httpCheckMethod string
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    httpCheckPath string
    Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
    httpCode 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).
    httpVersion 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_domain str
    Health check domain. For HTTP/HTTPS protocol.
    http_check_method str
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    http_check_path str
    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.
    healthSwitch Boolean
    Whether to enable health check. true: enable, false: disable.
    badLimit Number
    Unhealthy threshold. Number of consecutive failed health checks required before marking the backend as unhealthy. Range: [2, 10]. Default: 3.
    extendedCode String
    Extended status code for health check.
    gapTime Number
    Health check interval in seconds. Range: [2, 300]. Default: 5.
    goodLimit Number
    Healthy threshold. Number of consecutive successful health checks required before marking the backend as healthy. Range: [2, 10]. Default: 3.
    httpCheckDomain String
    Health check domain. For HTTP/HTTPS protocol.
    httpCheckMethod String
    Health check HTTP method. For HTTP/HTTPS protocol. Valid values: HEAD, GET. Default: HEAD.
    httpCheckPath String
    Health check path. For HTTP/HTTPS protocol. Must start with /. If not specified, / is used by default.
    httpCode 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).
    httpVersion 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

    BindIp string
    The internal ip of target group instance.
    Port double
    The port of target group instance.
    NewPort double
    The new port of target group instance.
    Weight double
    The weight of target group instance.
    BindIp string
    The internal ip of target group instance.
    Port float64
    The port of target group instance.
    NewPort float64
    The new port of target group instance.
    Weight float64
    The weight of target group instance.
    bindIp String
    The internal ip of target group instance.
    port Double
    The port of target group instance.
    newPort Double
    The new port of target group instance.
    weight Double
    The weight of target group instance.
    bindIp string
    The internal ip of target group instance.
    port number
    The port of target group instance.
    newPort number
    The new port of target group instance.
    weight number
    The weight of target group instance.
    bind_ip str
    The internal ip of target group instance.
    port float
    The port of target group instance.
    new_port float
    The new port of target group instance.
    weight float
    The weight of target group instance.
    bindIp String
    The internal ip of target group instance.
    port Number
    The port of target group instance.
    newPort Number
    The new port of target group instance.
    weight Number
    The weight of target group instance.

    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 tencentcloud Terraform Provider.
    tencentcloud logo
    Viewing docs for tencentcloud 1.82.78
    published on Wednesday, Mar 25, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.