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

tencentcloud.GwlbInstance

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_instance

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3";
    const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
    const subnet = new tencentcloud.Subnet("subnet", {
        availabilityZone: availabilityZone,
        vpcId: vpc.vpcId,
        cidrBlock: "10.0.20.0/28",
        isMulticast: false,
    });
    const gwlbInstance = new tencentcloud.GwlbInstance("gwlbInstance", {
        vpcId: vpc.vpcId,
        subnetId: subnet.subnetId,
        loadBalancerName: "tf-test",
        lbChargeType: "POSTPAID_BY_HOUR",
        tags: [{
            tagKey: "test_key",
            tagValue: "tag_value",
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-3"
    vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        availability_zone=availability_zone,
        vpc_id=vpc.vpc_id,
        cidr_block="10.0.20.0/28",
        is_multicast=False)
    gwlb_instance = tencentcloud.GwlbInstance("gwlbInstance",
        vpc_id=vpc.vpc_id,
        subnet_id=subnet.subnet_id,
        load_balancer_name="tf-test",
        lb_charge_type="POSTPAID_BY_HOUR",
        tags=[{
            "tag_key": "test_key",
            "tag_value": "tag_value",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			AvailabilityZone: pulumi.String(availabilityZone),
    			VpcId:            vpc.VpcId,
    			CidrBlock:        pulumi.String("10.0.20.0/28"),
    			IsMulticast:      pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewGwlbInstance(ctx, "gwlbInstance", &tencentcloud.GwlbInstanceArgs{
    			VpcId:            vpc.VpcId,
    			SubnetId:         subnet.SubnetId,
    			LoadBalancerName: pulumi.String("tf-test"),
    			LbChargeType:     pulumi.String("POSTPAID_BY_HOUR"),
    			Tags: tencentcloud.GwlbInstanceTagArray{
    				&tencentcloud.GwlbInstanceTagArgs{
    					TagKey:   pulumi.String("test_key"),
    					TagValue: pulumi.String("tag_value"),
    				},
    			},
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3";
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            AvailabilityZone = availabilityZone,
            VpcId = vpc.VpcId,
            CidrBlock = "10.0.20.0/28",
            IsMulticast = false,
        });
    
        var gwlbInstance = new Tencentcloud.GwlbInstance("gwlbInstance", new()
        {
            VpcId = vpc.VpcId,
            SubnetId = subnet.SubnetId,
            LoadBalancerName = "tf-test",
            LbChargeType = "POSTPAID_BY_HOUR",
            Tags = new[]
            {
                new Tencentcloud.Inputs.GwlbInstanceTagArgs
                {
                    TagKey = "test_key",
                    TagValue = "tag_value",
                },
            },
        });
    
    });
    
    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.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.GwlbInstance;
    import com.pulumi.tencentcloud.GwlbInstanceArgs;
    import com.pulumi.tencentcloud.inputs.GwlbInstanceTagArgs;
    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) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-3");
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .availabilityZone(availabilityZone)
                .vpcId(vpc.vpcId())
                .cidrBlock("10.0.20.0/28")
                .isMulticast(false)
                .build());
    
            var gwlbInstance = new GwlbInstance("gwlbInstance", GwlbInstanceArgs.builder()
                .vpcId(vpc.vpcId())
                .subnetId(subnet.subnetId())
                .loadBalancerName("tf-test")
                .lbChargeType("POSTPAID_BY_HOUR")
                .tags(GwlbInstanceTagArgs.builder()
                    .tagKey("test_key")
                    .tagValue("tag_value")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-3
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          availabilityZone: ${availabilityZone}
          vpcId: ${vpc.vpcId}
          cidrBlock: 10.0.20.0/28
          isMulticast: false
      gwlbInstance:
        type: tencentcloud:GwlbInstance
        properties:
          vpcId: ${vpc.vpcId}
          subnetId: ${subnet.subnetId}
          loadBalancerName: tf-test
          lbChargeType: POSTPAID_BY_HOUR
          tags:
            - tagKey: test_key
              tagValue: tag_value
    

    Create GwlbInstance Resource

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

    Constructor syntax

    new GwlbInstance(name: string, args: GwlbInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def GwlbInstance(resource_name: str,
                     args: GwlbInstanceArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def GwlbInstance(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     subnet_id: Optional[str] = None,
                     vpc_id: Optional[str] = None,
                     gwlb_instance_id: Optional[str] = None,
                     lb_charge_type: Optional[str] = None,
                     load_balancer_name: Optional[str] = None,
                     tags: Optional[Sequence[GwlbInstanceTagArgs]] = None)
    func NewGwlbInstance(ctx *Context, name string, args GwlbInstanceArgs, opts ...ResourceOption) (*GwlbInstance, error)
    public GwlbInstance(string name, GwlbInstanceArgs args, CustomResourceOptions? opts = null)
    public GwlbInstance(String name, GwlbInstanceArgs args)
    public GwlbInstance(String name, GwlbInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:GwlbInstance
    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 GwlbInstanceArgs
    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 GwlbInstanceArgs
    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 GwlbInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GwlbInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GwlbInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    SubnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    VpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    GwlbInstanceId string
    ID of the resource.
    LbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    LoadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    Tags List<GwlbInstanceTag>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    SubnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    VpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    GwlbInstanceId string
    ID of the resource.
    LbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    LoadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    Tags []GwlbInstanceTagArgs
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    subnetId String
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    vpcId String
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    gwlbInstanceId String
    ID of the resource.
    lbChargeType String
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName String
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    tags List<GwlbInstanceTag>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    subnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    vpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    gwlbInstanceId string
    ID of the resource.
    lbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    tags GwlbInstanceTag[]
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    subnet_id str
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    vpc_id str
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    gwlb_instance_id str
    ID of the resource.
    lb_charge_type str
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    load_balancer_name str
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    tags Sequence[GwlbInstanceTagArgs]
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    subnetId String
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    vpcId String
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    gwlbInstanceId String
    ID of the resource.
    lbChargeType String
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName String
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    tags List<Property Map>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.

    Outputs

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

    CreateTime string
    Create time.
    DeleteProtect bool
    Whether to turn on the deletion protection function.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    Isolation double
    0: means not quarantined, 1: means quarantined.
    OperateProtect bool
    Whether to enable the configuration modification protection function.
    Status double
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    TargetGroupId string
    Unique ID of the associated target group.
    Vips List<string>
    Gateway Load Balancer provides virtual IP services.
    CreateTime string
    Create time.
    DeleteProtect bool
    Whether to turn on the deletion protection function.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    Isolation float64
    0: means not quarantined, 1: means quarantined.
    OperateProtect bool
    Whether to enable the configuration modification protection function.
    Status float64
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    TargetGroupId string
    Unique ID of the associated target group.
    Vips []string
    Gateway Load Balancer provides virtual IP services.
    createTime String
    Create time.
    deleteProtect Boolean
    Whether to turn on the deletion protection function.
    id String
    The provider-assigned unique ID for this managed resource.
    isolatedTime String
    Time when the Gateway Load Balancer instance was isolated.
    isolation Double
    0: means not quarantined, 1: means quarantined.
    operateProtect Boolean
    Whether to enable the configuration modification protection function.
    status Double
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    targetGroupId String
    Unique ID of the associated target group.
    vips List<String>
    Gateway Load Balancer provides virtual IP services.
    createTime string
    Create time.
    deleteProtect boolean
    Whether to turn on the deletion protection function.
    id string
    The provider-assigned unique ID for this managed resource.
    isolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    isolation number
    0: means not quarantined, 1: means quarantined.
    operateProtect boolean
    Whether to enable the configuration modification protection function.
    status number
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    targetGroupId string
    Unique ID of the associated target group.
    vips string[]
    Gateway Load Balancer provides virtual IP services.
    create_time str
    Create time.
    delete_protect bool
    Whether to turn on the deletion protection function.
    id str
    The provider-assigned unique ID for this managed resource.
    isolated_time str
    Time when the Gateway Load Balancer instance was isolated.
    isolation float
    0: means not quarantined, 1: means quarantined.
    operate_protect bool
    Whether to enable the configuration modification protection function.
    status float
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    target_group_id str
    Unique ID of the associated target group.
    vips Sequence[str]
    Gateway Load Balancer provides virtual IP services.
    createTime String
    Create time.
    deleteProtect Boolean
    Whether to turn on the deletion protection function.
    id String
    The provider-assigned unique ID for this managed resource.
    isolatedTime String
    Time when the Gateway Load Balancer instance was isolated.
    isolation Number
    0: means not quarantined, 1: means quarantined.
    operateProtect Boolean
    Whether to enable the configuration modification protection function.
    status Number
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    targetGroupId String
    Unique ID of the associated target group.
    vips List<String>
    Gateway Load Balancer provides virtual IP services.

    Look up Existing GwlbInstance Resource

    Get an existing GwlbInstance 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?: GwlbInstanceState, opts?: CustomResourceOptions): GwlbInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            delete_protect: Optional[bool] = None,
            gwlb_instance_id: Optional[str] = None,
            isolated_time: Optional[str] = None,
            isolation: Optional[float] = None,
            lb_charge_type: Optional[str] = None,
            load_balancer_name: Optional[str] = None,
            operate_protect: Optional[bool] = None,
            status: Optional[float] = None,
            subnet_id: Optional[str] = None,
            tags: Optional[Sequence[GwlbInstanceTagArgs]] = None,
            target_group_id: Optional[str] = None,
            vips: Optional[Sequence[str]] = None,
            vpc_id: Optional[str] = None) -> GwlbInstance
    func GetGwlbInstance(ctx *Context, name string, id IDInput, state *GwlbInstanceState, opts ...ResourceOption) (*GwlbInstance, error)
    public static GwlbInstance Get(string name, Input<string> id, GwlbInstanceState? state, CustomResourceOptions? opts = null)
    public static GwlbInstance get(String name, Output<String> id, GwlbInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:GwlbInstance    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:
    CreateTime string
    Create time.
    DeleteProtect bool
    Whether to turn on the deletion protection function.
    GwlbInstanceId string
    ID of the resource.
    IsolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    Isolation double
    0: means not quarantined, 1: means quarantined.
    LbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    LoadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    OperateProtect bool
    Whether to enable the configuration modification protection function.
    Status double
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    SubnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    Tags List<GwlbInstanceTag>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    TargetGroupId string
    Unique ID of the associated target group.
    Vips List<string>
    Gateway Load Balancer provides virtual IP services.
    VpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    CreateTime string
    Create time.
    DeleteProtect bool
    Whether to turn on the deletion protection function.
    GwlbInstanceId string
    ID of the resource.
    IsolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    Isolation float64
    0: means not quarantined, 1: means quarantined.
    LbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    LoadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    OperateProtect bool
    Whether to enable the configuration modification protection function.
    Status float64
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    SubnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    Tags []GwlbInstanceTagArgs
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    TargetGroupId string
    Unique ID of the associated target group.
    Vips []string
    Gateway Load Balancer provides virtual IP services.
    VpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    createTime String
    Create time.
    deleteProtect Boolean
    Whether to turn on the deletion protection function.
    gwlbInstanceId String
    ID of the resource.
    isolatedTime String
    Time when the Gateway Load Balancer instance was isolated.
    isolation Double
    0: means not quarantined, 1: means quarantined.
    lbChargeType String
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName String
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    operateProtect Boolean
    Whether to enable the configuration modification protection function.
    status Double
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    subnetId String
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    tags List<GwlbInstanceTag>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    targetGroupId String
    Unique ID of the associated target group.
    vips List<String>
    Gateway Load Balancer provides virtual IP services.
    vpcId String
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    createTime string
    Create time.
    deleteProtect boolean
    Whether to turn on the deletion protection function.
    gwlbInstanceId string
    ID of the resource.
    isolatedTime string
    Time when the Gateway Load Balancer instance was isolated.
    isolation number
    0: means not quarantined, 1: means quarantined.
    lbChargeType string
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName string
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    operateProtect boolean
    Whether to enable the configuration modification protection function.
    status number
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    subnetId string
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    tags GwlbInstanceTag[]
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    targetGroupId string
    Unique ID of the associated target group.
    vips string[]
    Gateway Load Balancer provides virtual IP services.
    vpcId string
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    create_time str
    Create time.
    delete_protect bool
    Whether to turn on the deletion protection function.
    gwlb_instance_id str
    ID of the resource.
    isolated_time str
    Time when the Gateway Load Balancer instance was isolated.
    isolation float
    0: means not quarantined, 1: means quarantined.
    lb_charge_type str
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    load_balancer_name str
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    operate_protect bool
    Whether to enable the configuration modification protection function.
    status float
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    subnet_id str
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    tags Sequence[GwlbInstanceTagArgs]
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    target_group_id str
    Unique ID of the associated target group.
    vips Sequence[str]
    Gateway Load Balancer provides virtual IP services.
    vpc_id str
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.
    createTime String
    Create time.
    deleteProtect Boolean
    Whether to turn on the deletion protection function.
    gwlbInstanceId String
    ID of the resource.
    isolatedTime String
    Time when the Gateway Load Balancer instance was isolated.
    isolation Number
    0: means not quarantined, 1: means quarantined.
    lbChargeType String
    GWLB instance billing type, which currently supports POSTPAID_BY_HOUR only. The default is POSTPAID_BY_HOUR.
    loadBalancerName String
    GWLB instance name. It supports input of 1 to 60 characters. If not filled in, it will be generated automatically by default.
    operateProtect Boolean
    Whether to enable the configuration modification protection function.
    status Number
    Gateway Load Balancer instance status. 0: Creating, 1: Running normally, 3: Removing.
    subnetId String
    Subnet ID of the VPC to which the backend target device of the GWLB belongs.
    tags List<Property Map>
    While the GWLB is purchased, it is tagged, with a maximum of 20 tag key-value pairs.
    targetGroupId String
    Unique ID of the associated target group.
    vips List<String>
    Gateway Load Balancer provides virtual IP services.
    vpcId String
    ID of the VPC to which the backend target device of the GWLB belongs, such as vpc-12345678. It can be obtained through the DescribeVpcEx interface. If left blank, it defaults to DefaultVPC. This parameter is required when a private network CLB instance is created.

    Supporting Types

    GwlbInstanceTag, GwlbInstanceTagArgs

    TagKey string
    Tag key.
    TagValue string
    Tag value.
    TagKey string
    Tag key.
    TagValue string
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.
    tagKey string
    Tag key.
    tagValue string
    Tag value.
    tag_key str
    Tag key.
    tag_value str
    Tag value.
    tagKey String
    Tag key.
    tagValue String
    Tag value.

    Import

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

    $ pulumi import tencentcloud:index/gwlbInstance:GwlbInstance gwlb_instance gwlb_instance_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