1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. GwlbTargetGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.GwlbTargetGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a gwlb gwlb_target_group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const gwlbTargetGroup = new tencentcloud.GwlbTargetGroup("gwlbTargetGroup", {
        targetGroupName: "tf-test",
        vpcId: vpc.vpcId,
        port: 6081,
        healthCheck: {
            healthSwitch: true,
            protocol: "tcp",
            port: 6081,
            timeout: 2,
            intervalTime: 5,
            healthNum: 3,
            unHealthNum: 3,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    gwlb_target_group = tencentcloud.GwlbTargetGroup("gwlbTargetGroup",
        target_group_name="tf-test",
        vpc_id=vpc.vpc_id,
        port=6081,
        health_check={
            "health_switch": True,
            "protocol": "tcp",
            "port": 6081,
            "timeout": 2,
            "interval_time": 5,
            "health_num": 3,
            "un_health_num": 3,
        })
    
    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 {
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewGwlbTargetGroup(ctx, "gwlbTargetGroup", &tencentcloud.GwlbTargetGroupArgs{
    			TargetGroupName: pulumi.String("tf-test"),
    			VpcId:           vpc.VpcId,
    			Port:            pulumi.Float64(6081),
    			HealthCheck: &tencentcloud.GwlbTargetGroupHealthCheckArgs{
    				HealthSwitch: pulumi.Bool(true),
    				Protocol:     pulumi.String("tcp"),
    				Port:         pulumi.Float64(6081),
    				Timeout:      pulumi.Float64(2),
    				IntervalTime: pulumi.Float64(5),
    				HealthNum:    pulumi.Float64(3),
    				UnHealthNum:  pulumi.Float64(3),
    			},
    		})
    		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 vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var gwlbTargetGroup = new Tencentcloud.GwlbTargetGroup("gwlbTargetGroup", new()
        {
            TargetGroupName = "tf-test",
            VpcId = vpc.VpcId,
            Port = 6081,
            HealthCheck = new Tencentcloud.Inputs.GwlbTargetGroupHealthCheckArgs
            {
                HealthSwitch = true,
                Protocol = "tcp",
                Port = 6081,
                Timeout = 2,
                IntervalTime = 5,
                HealthNum = 3,
                UnHealthNum = 3,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.GwlbTargetGroup;
    import com.pulumi.tencentcloud.GwlbTargetGroupArgs;
    import com.pulumi.tencentcloud.inputs.GwlbTargetGroupHealthCheckArgs;
    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 vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var gwlbTargetGroup = new GwlbTargetGroup("gwlbTargetGroup", GwlbTargetGroupArgs.builder()
                .targetGroupName("tf-test")
                .vpcId(vpc.vpcId())
                .port(6081)
                .healthCheck(GwlbTargetGroupHealthCheckArgs.builder()
                    .healthSwitch(true)
                    .protocol("tcp")
                    .port(6081)
                    .timeout(2)
                    .intervalTime(5)
                    .healthNum(3)
                    .unHealthNum(3)
                    .build())
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      gwlbTargetGroup:
        type: tencentcloud:GwlbTargetGroup
        properties:
          targetGroupName: tf-test
          vpcId: ${vpc.vpcId}
          port: 6081
          healthCheck:
            healthSwitch: true
            protocol: tcp
            port: 6081
            timeout: 2
            intervalTime: 5
            healthNum: 3
            unHealthNum: 3
    

    Create GwlbTargetGroup Resource

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

    Constructor syntax

    new GwlbTargetGroup(name: string, args?: GwlbTargetGroupArgs, opts?: CustomResourceOptions);
    @overload
    def GwlbTargetGroup(resource_name: str,
                        args: Optional[GwlbTargetGroupArgs] = None,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def GwlbTargetGroup(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        all_dead_to_alive: Optional[bool] = None,
                        gwlb_target_group_id: Optional[str] = None,
                        health_check: Optional[GwlbTargetGroupHealthCheckArgs] = None,
                        port: Optional[float] = None,
                        protocol: Optional[str] = None,
                        schedule_algorithm: Optional[str] = None,
                        target_group_name: Optional[str] = None,
                        vpc_id: Optional[str] = None)
    func NewGwlbTargetGroup(ctx *Context, name string, args *GwlbTargetGroupArgs, opts ...ResourceOption) (*GwlbTargetGroup, error)
    public GwlbTargetGroup(string name, GwlbTargetGroupArgs? args = null, CustomResourceOptions? opts = null)
    public GwlbTargetGroup(String name, GwlbTargetGroupArgs args)
    public GwlbTargetGroup(String name, GwlbTargetGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:GwlbTargetGroup
    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 GwlbTargetGroupArgs
    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 GwlbTargetGroupArgs
    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 GwlbTargetGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GwlbTargetGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GwlbTargetGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    GwlbTargetGroup 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 GwlbTargetGroup resource accepts the following input properties:

    AllDeadToAlive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    GwlbTargetGroupId string
    ID of the resource.
    HealthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    Port double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    ScheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    TargetGroupName string
    Target group name, limited to 60 characters.
    VpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    AllDeadToAlive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    GwlbTargetGroupId string
    ID of the resource.
    HealthCheck GwlbTargetGroupHealthCheckArgs
    Health check settings.
    Port float64
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    ScheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    TargetGroupName string
    Target group name, limited to 60 characters.
    VpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive Boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId String
    ID of the resource.
    healthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    port Double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol String
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm String
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupName String
    Target group name, limited to 60 characters.
    vpcId String
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId string
    ID of the resource.
    healthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    port number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupName string
    Target group name, limited to 60 characters.
    vpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    all_dead_to_alive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlb_target_group_id str
    ID of the resource.
    health_check GwlbTargetGroupHealthCheckArgs
    Health check settings.
    port float
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol str
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    schedule_algorithm str
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    target_group_name str
    Target group name, limited to 60 characters.
    vpc_id str
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive Boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId String
    ID of the resource.
    healthCheck Property Map
    Health check settings.
    port Number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol String
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm String
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupName String
    Target group name, limited to 60 characters.
    vpcId String
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TargetGroupInstances List<GwlbTargetGroupTargetGroupInstance>
    Real server bound to a target group.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetGroupInstances []GwlbTargetGroupTargetGroupInstance
    Real server bound to a target group.
    id String
    The provider-assigned unique ID for this managed resource.
    targetGroupInstances List<GwlbTargetGroupTargetGroupInstance>
    Real server bound to a target group.
    id string
    The provider-assigned unique ID for this managed resource.
    targetGroupInstances GwlbTargetGroupTargetGroupInstance[]
    Real server bound to a target group.
    id str
    The provider-assigned unique ID for this managed resource.
    target_group_instances Sequence[GwlbTargetGroupTargetGroupInstance]
    Real server bound to a target group.
    id String
    The provider-assigned unique ID for this managed resource.
    targetGroupInstances List<Property Map>
    Real server bound to a target group.

    Look up Existing GwlbTargetGroup Resource

    Get an existing GwlbTargetGroup 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?: GwlbTargetGroupState, opts?: CustomResourceOptions): GwlbTargetGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            all_dead_to_alive: Optional[bool] = None,
            gwlb_target_group_id: Optional[str] = None,
            health_check: Optional[GwlbTargetGroupHealthCheckArgs] = None,
            port: Optional[float] = None,
            protocol: Optional[str] = None,
            schedule_algorithm: Optional[str] = None,
            target_group_instances: Optional[Sequence[GwlbTargetGroupTargetGroupInstanceArgs]] = None,
            target_group_name: Optional[str] = None,
            vpc_id: Optional[str] = None) -> GwlbTargetGroup
    func GetGwlbTargetGroup(ctx *Context, name string, id IDInput, state *GwlbTargetGroupState, opts ...ResourceOption) (*GwlbTargetGroup, error)
    public static GwlbTargetGroup Get(string name, Input<string> id, GwlbTargetGroupState? state, CustomResourceOptions? opts = null)
    public static GwlbTargetGroup get(String name, Output<String> id, GwlbTargetGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:GwlbTargetGroup    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:
    AllDeadToAlive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    GwlbTargetGroupId string
    ID of the resource.
    HealthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    Port double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    ScheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    TargetGroupInstances List<GwlbTargetGroupTargetGroupInstance>
    Real server bound to a target group.
    TargetGroupName string
    Target group name, limited to 60 characters.
    VpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    AllDeadToAlive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    GwlbTargetGroupId string
    ID of the resource.
    HealthCheck GwlbTargetGroupHealthCheckArgs
    Health check settings.
    Port float64
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    ScheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    TargetGroupInstances []GwlbTargetGroupTargetGroupInstanceArgs
    Real server bound to a target group.
    TargetGroupName string
    Target group name, limited to 60 characters.
    VpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive Boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId String
    ID of the resource.
    healthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    port Double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol String
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm String
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupInstances List<GwlbTargetGroupTargetGroupInstance>
    Real server bound to a target group.
    targetGroupName String
    Target group name, limited to 60 characters.
    vpcId String
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId string
    ID of the resource.
    healthCheck GwlbTargetGroupHealthCheck
    Health check settings.
    port number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol string
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm string
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupInstances GwlbTargetGroupTargetGroupInstance[]
    Real server bound to a target group.
    targetGroupName string
    Target group name, limited to 60 characters.
    vpcId string
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    all_dead_to_alive bool
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlb_target_group_id str
    ID of the resource.
    health_check GwlbTargetGroupHealthCheckArgs
    Health check settings.
    port float
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol str
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    schedule_algorithm str
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    target_group_instances Sequence[GwlbTargetGroupTargetGroupInstanceArgs]
    Real server bound to a target group.
    target_group_name str
    Target group name, limited to 60 characters.
    vpc_id str
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.
    allDeadToAlive Boolean
    Whether "All Dead, All Alive" is supported. It is supported by default.
    gwlbTargetGroupId String
    ID of the resource.
    healthCheck Property Map
    Health check settings.
    port Number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    protocol String
    GWLB target group protocol.

    • TENCENT_GENEVE: GENEVE standard protocol;
    • AWS_GENEVE: GENEVE compatibility protocol (a ticket is required for allowlisting).
    scheduleAlgorithm String
    Load balancing algorithm.

    • IP_HASH_3_ELASTIC: elastic hashing.
    targetGroupInstances List<Property Map>
    Real server bound to a target group.
    targetGroupName String
    Target group name, limited to 60 characters.
    vpcId String
    VPCID attribute of target group. If this parameter is left blank, the default VPC will be used.

    Supporting Types

    GwlbTargetGroupHealthCheck, GwlbTargetGroupHealthCheckArgs

    HealthSwitch bool
    Whether to enable the health check.
    HealthNum double
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    IntervalTime double
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    Port double
    Health check port, which is required when the probe protocol is TCP.
    Protocol string
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    Timeout double
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    UnHealthNum double
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
    HealthSwitch bool
    Whether to enable the health check.
    HealthNum float64
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    IntervalTime float64
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    Port float64
    Health check port, which is required when the probe protocol is TCP.
    Protocol string
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    Timeout float64
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    UnHealthNum float64
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
    healthSwitch Boolean
    Whether to enable the health check.
    healthNum Double
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    intervalTime Double
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    port Double
    Health check port, which is required when the probe protocol is TCP.
    protocol String
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    timeout Double
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    unHealthNum Double
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
    healthSwitch boolean
    Whether to enable the health check.
    healthNum number
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    intervalTime number
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    port number
    Health check port, which is required when the probe protocol is TCP.
    protocol string
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    timeout number
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    unHealthNum number
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
    health_switch bool
    Whether to enable the health check.
    health_num float
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    interval_time float
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    port float
    Health check port, which is required when the probe protocol is TCP.
    protocol str
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    timeout float
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    un_health_num float
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.
    healthSwitch Boolean
    Whether to enable the health check.
    healthNum Number
    Health detection threshold. The default is 3 times. Value range: 2-10 times.
    intervalTime Number
    Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.
    port Number
    Health check port, which is required when the probe protocol is TCP.
    protocol String
    Protocol used for health check, which supports PING and TCP and is PING by default.

    • PING: icmp;
    • TCP: tcp.
    timeout Number
    Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.
    unHealthNum Number
    Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.

    GwlbTargetGroupTargetGroupInstance, GwlbTargetGroupTargetGroupInstanceArgs

    BindIp string
    Private network IP of target group instance.
    Port double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Weight double
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
    BindIp string
    Private network IP of target group instance.
    Port float64
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    Weight float64
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
    bindIp String
    Private network IP of target group instance.
    port Double
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    weight Double
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
    bindIp string
    Private network IP of target group instance.
    port number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    weight number
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
    bind_ip str
    Private network IP of target group instance.
    port float
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    weight float
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.
    bindIp String
    Private network IP of target group instance.
    port Number
    Default port of the target group, which can be used when servers are added later. Either 'Port' or 'TargetGroupInstances.N.port' must be filled in.
    weight Number
    Weight of target group instance. Only 0 or 16 is supported, and non-0 is uniformly treated as 16.

    Import

    gwlb gwlb_target_group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/gwlbTargetGroup:GwlbTargetGroup gwlb_target_group gwlb_target_group_id
    

    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
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack