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

tencentcloud.getClbInstances

Explore with Pulumi AI

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

    Use this data source to query detailed information of CLB

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = tencentcloud.getClbInstances({
        clbId: "lb-k2zjp9lv",
        clbName: "myclb",
        networkType: "OPEN",
        projectId: 0,
        resultOutputFile: "mytestpath",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.get_clb_instances(clb_id="lb-k2zjp9lv",
        clb_name="myclb",
        network_type="OPEN",
        project_id=0,
        result_output_file="mytestpath")
    
    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.GetClbInstances(ctx, &tencentcloud.GetClbInstancesArgs{
    			ClbId:            pulumi.StringRef("lb-k2zjp9lv"),
    			ClbName:          pulumi.StringRef("myclb"),
    			NetworkType:      pulumi.StringRef("OPEN"),
    			ProjectId:        pulumi.Float64Ref(0),
    			ResultOutputFile: pulumi.StringRef("mytestpath"),
    		}, nil)
    		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 foo = Tencentcloud.GetClbInstances.Invoke(new()
        {
            ClbId = "lb-k2zjp9lv",
            ClbName = "myclb",
            NetworkType = "OPEN",
            ProjectId = 0,
            ResultOutputFile = "mytestpath",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetClbInstancesArgs;
    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 foo = TencentcloudFunctions.getClbInstances(GetClbInstancesArgs.builder()
                .clbId("lb-k2zjp9lv")
                .clbName("myclb")
                .networkType("OPEN")
                .projectId(0)
                .resultOutputFile("mytestpath")
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          function: tencentcloud:getClbInstances
          arguments:
            clbId: lb-k2zjp9lv
            clbName: myclb
            networkType: OPEN
            projectId: 0
            resultOutputFile: mytestpath
    

    Using getClbInstances

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getClbInstances(args: GetClbInstancesArgs, opts?: InvokeOptions): Promise<GetClbInstancesResult>
    function getClbInstancesOutput(args: GetClbInstancesOutputArgs, opts?: InvokeOptions): Output<GetClbInstancesResult>
    def get_clb_instances(clb_id: Optional[str] = None,
                          clb_name: Optional[str] = None,
                          id: Optional[str] = None,
                          master_zone: Optional[str] = None,
                          network_type: Optional[str] = None,
                          project_id: Optional[float] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetClbInstancesResult
    def get_clb_instances_output(clb_id: Optional[pulumi.Input[str]] = None,
                          clb_name: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          master_zone: Optional[pulumi.Input[str]] = None,
                          network_type: Optional[pulumi.Input[str]] = None,
                          project_id: Optional[pulumi.Input[float]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetClbInstancesResult]
    func GetClbInstances(ctx *Context, args *GetClbInstancesArgs, opts ...InvokeOption) (*GetClbInstancesResult, error)
    func GetClbInstancesOutput(ctx *Context, args *GetClbInstancesOutputArgs, opts ...InvokeOption) GetClbInstancesResultOutput

    > Note: This function is named GetClbInstances in the Go SDK.

    public static class GetClbInstances 
    {
        public static Task<GetClbInstancesResult> InvokeAsync(GetClbInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetClbInstancesResult> Invoke(GetClbInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClbInstancesResult> getClbInstances(GetClbInstancesArgs args, InvokeOptions options)
    public static Output<GetClbInstancesResult> getClbInstances(GetClbInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getClbInstances:getClbInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClbId string
    ID of the CLB to be queried.
    ClbName string
    Name of the CLB to be queried.
    Id string
    MasterZone string
    Master available zone id.
    NetworkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    ProjectId double
    Project ID of the CLB.
    ResultOutputFile string
    Used to save results.
    ClbId string
    ID of the CLB to be queried.
    ClbName string
    Name of the CLB to be queried.
    Id string
    MasterZone string
    Master available zone id.
    NetworkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    ProjectId float64
    Project ID of the CLB.
    ResultOutputFile string
    Used to save results.
    clbId String
    ID of the CLB to be queried.
    clbName String
    Name of the CLB to be queried.
    id String
    masterZone String
    Master available zone id.
    networkType String
    Type of CLB instance, and available values include OPEN and INTERNAL.
    projectId Double
    Project ID of the CLB.
    resultOutputFile String
    Used to save results.
    clbId string
    ID of the CLB to be queried.
    clbName string
    Name of the CLB to be queried.
    id string
    masterZone string
    Master available zone id.
    networkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    projectId number
    Project ID of the CLB.
    resultOutputFile string
    Used to save results.
    clb_id str
    ID of the CLB to be queried.
    clb_name str
    Name of the CLB to be queried.
    id str
    master_zone str
    Master available zone id.
    network_type str
    Type of CLB instance, and available values include OPEN and INTERNAL.
    project_id float
    Project ID of the CLB.
    result_output_file str
    Used to save results.
    clbId String
    ID of the CLB to be queried.
    clbName String
    Name of the CLB to be queried.
    id String
    masterZone String
    Master available zone id.
    networkType String
    Type of CLB instance, and available values include OPEN and INTERNAL.
    projectId Number
    Project ID of the CLB.
    resultOutputFile String
    Used to save results.

    getClbInstances Result

    The following output properties are available:

    ClbLists List<GetClbInstancesClbList>
    A list of cloud load balancers. Each element contains the following attributes:
    Id string
    ClbId string
    ID of CLB.
    ClbName string
    Name of CLB.
    MasterZone string
    NetworkType string
    Types of CLB.
    ProjectId double
    ID of the project.
    ResultOutputFile string
    ClbLists []GetClbInstancesClbList
    A list of cloud load balancers. Each element contains the following attributes:
    Id string
    ClbId string
    ID of CLB.
    ClbName string
    Name of CLB.
    MasterZone string
    NetworkType string
    Types of CLB.
    ProjectId float64
    ID of the project.
    ResultOutputFile string
    clbLists List<GetClbInstancesClbList>
    A list of cloud load balancers. Each element contains the following attributes:
    id String
    clbId String
    ID of CLB.
    clbName String
    Name of CLB.
    masterZone String
    networkType String
    Types of CLB.
    projectId Double
    ID of the project.
    resultOutputFile String
    clbLists GetClbInstancesClbList[]
    A list of cloud load balancers. Each element contains the following attributes:
    id string
    clbId string
    ID of CLB.
    clbName string
    Name of CLB.
    masterZone string
    networkType string
    Types of CLB.
    projectId number
    ID of the project.
    resultOutputFile string
    clb_lists Sequence[GetClbInstancesClbList]
    A list of cloud load balancers. Each element contains the following attributes:
    id str
    clb_id str
    ID of CLB.
    clb_name str
    Name of CLB.
    master_zone str
    network_type str
    Types of CLB.
    project_id float
    ID of the project.
    result_output_file str
    clbLists List<Property Map>
    A list of cloud load balancers. Each element contains the following attributes:
    id String
    clbId String
    ID of CLB.
    clbName String
    Name of CLB.
    masterZone String
    networkType String
    Types of CLB.
    projectId Number
    ID of the project.
    resultOutputFile String

    Supporting Types

    GetClbInstancesClbList

    AddressIpVersion string
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    ClbId string
    ID of the CLB to be queried.
    ClbName string
    Name of the CLB to be queried.
    ClbVips List<string>
    The virtual service address table of the CLB.
    ClusterId string
    ID of the cluster.
    CreateTime string
    Create time of the CLB.
    InternetBandwidthMaxOut double
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    InternetChargeType string
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    LocalZone bool
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    NetworkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    NumericalVpcId double
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    ProjectId double
    Project ID of the CLB.
    SecurityGroups List<string>
    ID set of the security groups.
    Status double
    The status of CLB.
    StatusTime string
    Latest state transition time of CLB.
    SubnetId string
    ID of the subnet.
    Tags Dictionary<string, string>
    The available tags within this CLB.
    TargetRegionInfoRegion string
    Region information of backend service are attached the CLB.
    TargetRegionInfoVpcId string
    VpcId information of backend service are attached the CLB.
    VipIsp string
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    VpcId string
    ID of the VPC.
    Zone string
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    ZoneId double
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    ZoneName string
    Available zone name, This field maybe null, means cannot get a valid value.
    ZoneRegion string
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.
    AddressIpVersion string
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    ClbId string
    ID of the CLB to be queried.
    ClbName string
    Name of the CLB to be queried.
    ClbVips []string
    The virtual service address table of the CLB.
    ClusterId string
    ID of the cluster.
    CreateTime string
    Create time of the CLB.
    InternetBandwidthMaxOut float64
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    InternetChargeType string
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    LocalZone bool
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    NetworkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    NumericalVpcId float64
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    ProjectId float64
    Project ID of the CLB.
    SecurityGroups []string
    ID set of the security groups.
    Status float64
    The status of CLB.
    StatusTime string
    Latest state transition time of CLB.
    SubnetId string
    ID of the subnet.
    Tags map[string]string
    The available tags within this CLB.
    TargetRegionInfoRegion string
    Region information of backend service are attached the CLB.
    TargetRegionInfoVpcId string
    VpcId information of backend service are attached the CLB.
    VipIsp string
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    VpcId string
    ID of the VPC.
    Zone string
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    ZoneId float64
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    ZoneName string
    Available zone name, This field maybe null, means cannot get a valid value.
    ZoneRegion string
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.
    addressIpVersion String
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    clbId String
    ID of the CLB to be queried.
    clbName String
    Name of the CLB to be queried.
    clbVips List<String>
    The virtual service address table of the CLB.
    clusterId String
    ID of the cluster.
    createTime String
    Create time of the CLB.
    internetBandwidthMaxOut Double
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    internetChargeType String
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    localZone Boolean
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    networkType String
    Type of CLB instance, and available values include OPEN and INTERNAL.
    numericalVpcId Double
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    projectId Double
    Project ID of the CLB.
    securityGroups List<String>
    ID set of the security groups.
    status Double
    The status of CLB.
    statusTime String
    Latest state transition time of CLB.
    subnetId String
    ID of the subnet.
    tags Map<String,String>
    The available tags within this CLB.
    targetRegionInfoRegion String
    Region information of backend service are attached the CLB.
    targetRegionInfoVpcId String
    VpcId information of backend service are attached the CLB.
    vipIsp String
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    vpcId String
    ID of the VPC.
    zone String
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    zoneId Double
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    zoneName String
    Available zone name, This field maybe null, means cannot get a valid value.
    zoneRegion String
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.
    addressIpVersion string
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    clbId string
    ID of the CLB to be queried.
    clbName string
    Name of the CLB to be queried.
    clbVips string[]
    The virtual service address table of the CLB.
    clusterId string
    ID of the cluster.
    createTime string
    Create time of the CLB.
    internetBandwidthMaxOut number
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    internetChargeType string
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    localZone boolean
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    networkType string
    Type of CLB instance, and available values include OPEN and INTERNAL.
    numericalVpcId number
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    projectId number
    Project ID of the CLB.
    securityGroups string[]
    ID set of the security groups.
    status number
    The status of CLB.
    statusTime string
    Latest state transition time of CLB.
    subnetId string
    ID of the subnet.
    tags {[key: string]: string}
    The available tags within this CLB.
    targetRegionInfoRegion string
    Region information of backend service are attached the CLB.
    targetRegionInfoVpcId string
    VpcId information of backend service are attached the CLB.
    vipIsp string
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    vpcId string
    ID of the VPC.
    zone string
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    zoneId number
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    zoneName string
    Available zone name, This field maybe null, means cannot get a valid value.
    zoneRegion string
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.
    address_ip_version str
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    clb_id str
    ID of the CLB to be queried.
    clb_name str
    Name of the CLB to be queried.
    clb_vips Sequence[str]
    The virtual service address table of the CLB.
    cluster_id str
    ID of the cluster.
    create_time str
    Create time of the CLB.
    internet_bandwidth_max_out float
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    internet_charge_type str
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    local_zone bool
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    network_type str
    Type of CLB instance, and available values include OPEN and INTERNAL.
    numerical_vpc_id float
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    project_id float
    Project ID of the CLB.
    security_groups Sequence[str]
    ID set of the security groups.
    status float
    The status of CLB.
    status_time str
    Latest state transition time of CLB.
    subnet_id str
    ID of the subnet.
    tags Mapping[str, str]
    The available tags within this CLB.
    target_region_info_region str
    Region information of backend service are attached the CLB.
    target_region_info_vpc_id str
    VpcId information of backend service are attached the CLB.
    vip_isp str
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    vpc_id str
    ID of the VPC.
    zone str
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    zone_id float
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    zone_name str
    Available zone name, This field maybe null, means cannot get a valid value.
    zone_region str
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.
    addressIpVersion String
    IP version, only applicable to open CLB. Valid values are IPV4, IPV6 and IPv6FullChain.
    clbId String
    ID of the CLB to be queried.
    clbName String
    Name of the CLB to be queried.
    clbVips List<String>
    The virtual service address table of the CLB.
    clusterId String
    ID of the cluster.
    createTime String
    Create time of the CLB.
    internetBandwidthMaxOut Number
    Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
    internetChargeType String
    Internet charge type, only applicable to open CLB. Valid values are TRAFFIC_POSTPAID_BY_HOUR, BANDWIDTH_POSTPAID_BY_HOUR and BANDWIDTH_PACKAGE.
    localZone Boolean
    Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
    networkType String
    Type of CLB instance, and available values include OPEN and INTERNAL.
    numericalVpcId Number
    VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
    projectId Number
    Project ID of the CLB.
    securityGroups List<String>
    ID set of the security groups.
    status Number
    The status of CLB.
    statusTime String
    Latest state transition time of CLB.
    subnetId String
    ID of the subnet.
    tags Map<String>
    The available tags within this CLB.
    targetRegionInfoRegion String
    Region information of backend service are attached the CLB.
    targetRegionInfoVpcId String
    VpcId information of backend service are attached the CLB.
    vipIsp String
    Network operator, only applicable to open CLB. Valid values are CMCC(China Mobile), CTCC(Telecom), CUCC(China Unicom) and BGP. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
    vpcId String
    ID of the VPC.
    zone String
    Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
    zoneId Number
    Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
    zoneName String
    Available zone name, This field maybe null, means cannot get a valid value.
    zoneRegion String
    Region that this available zone belong to, This field maybe null, means cannot get a valid value.

    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