tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbInstances
Explore with Pulumi AI
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:
- Clb
Id string - ID of the CLB to be queried.
- Clb
Name string - Name of the CLB to be queried.
- Id string
- Master
Zone string - Master available zone id.
- Network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - Project
Id double - Project ID of the CLB.
- Result
Output stringFile - Used to save results.
- Clb
Id string - ID of the CLB to be queried.
- Clb
Name string - Name of the CLB to be queried.
- Id string
- Master
Zone string - Master available zone id.
- Network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - Project
Id float64 - Project ID of the CLB.
- Result
Output stringFile - Used to save results.
- clb
Id String - ID of the CLB to be queried.
- clb
Name String - Name of the CLB to be queried.
- id String
- master
Zone String - Master available zone id.
- network
Type String - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - project
Id Double - Project ID of the CLB.
- result
Output StringFile - Used to save results.
- clb
Id string - ID of the CLB to be queried.
- clb
Name string - Name of the CLB to be queried.
- id string
- master
Zone string - Master available zone id.
- network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - project
Id number - Project ID of the CLB.
- result
Output stringFile - 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
andINTERNAL
. - project_
id float - Project ID of the CLB.
- result_
output_ strfile - Used to save results.
- clb
Id String - ID of the CLB to be queried.
- clb
Name String - Name of the CLB to be queried.
- id String
- master
Zone String - Master available zone id.
- network
Type String - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - project
Id Number - Project ID of the CLB.
- result
Output StringFile - Used to save results.
getClbInstances Result
The following output properties are available:
- Clb
Lists List<GetClb Instances Clb List> - A list of cloud load balancers. Each element contains the following attributes:
- Id string
- Clb
Id string - ID of CLB.
- Clb
Name string - Name of CLB.
- Master
Zone string - Network
Type string - Types of CLB.
- Project
Id double - ID of the project.
- Result
Output stringFile
- Clb
Lists []GetClb Instances Clb List - A list of cloud load balancers. Each element contains the following attributes:
- Id string
- Clb
Id string - ID of CLB.
- Clb
Name string - Name of CLB.
- Master
Zone string - Network
Type string - Types of CLB.
- Project
Id float64 - ID of the project.
- Result
Output stringFile
- clb
Lists List<GetClb Instances Clb List> - A list of cloud load balancers. Each element contains the following attributes:
- id String
- clb
Id String - ID of CLB.
- clb
Name String - Name of CLB.
- master
Zone String - network
Type String - Types of CLB.
- project
Id Double - ID of the project.
- result
Output StringFile
- clb
Lists GetClb Instances Clb List[] - A list of cloud load balancers. Each element contains the following attributes:
- id string
- clb
Id string - ID of CLB.
- clb
Name string - Name of CLB.
- master
Zone string - network
Type string - Types of CLB.
- project
Id number - ID of the project.
- result
Output stringFile
- clb_
lists Sequence[GetClb Instances Clb List] - 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_ strfile
- clb
Lists List<Property Map> - A list of cloud load balancers. Each element contains the following attributes:
- id String
- clb
Id String - ID of CLB.
- clb
Name String - Name of CLB.
- master
Zone String - network
Type String - Types of CLB.
- project
Id Number - ID of the project.
- result
Output StringFile
Supporting Types
GetClbInstancesClbList
- Address
Ip stringVersion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - Clb
Id string - ID of the CLB to be queried.
- Clb
Name string - Name of the CLB to be queried.
- Clb
Vips List<string> - The virtual service address table of the CLB.
- Cluster
Id string - ID of the cluster.
- Create
Time string - Create time of the CLB.
- Internet
Bandwidth doubleMax Out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- Internet
Charge stringType - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Local
Zone bool - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
- Network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - Numerical
Vpc doubleId - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
- Project
Id double - Project ID of the CLB.
- Security
Groups List<string> - ID set of the security groups.
- Status double
- The status of CLB.
- Status
Time string - Latest state transition time of CLB.
- Subnet
Id string - ID of the subnet.
- Dictionary<string, string>
- The available tags within this CLB.
- Target
Region stringInfo Region - Region information of backend service are attached the CLB.
- Target
Region stringInfo Vpc Id - VpcId information of backend service are attached the CLB.
- Vip
Isp string - Network operator, only applicable to open CLB. Valid values are
CMCC
(China Mobile),CTCC
(Telecom),CUCC
(China Unicom) andBGP
. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE). - Vpc
Id string - ID of the VPC.
- Zone string
- Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
- Zone
Id double - Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
- Zone
Name string - Available zone name, This field maybe null, means cannot get a valid value.
- Zone
Region string - Region that this available zone belong to, This field maybe null, means cannot get a valid value.
- Address
Ip stringVersion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - Clb
Id string - ID of the CLB to be queried.
- Clb
Name string - Name of the CLB to be queried.
- Clb
Vips []string - The virtual service address table of the CLB.
- Cluster
Id string - ID of the cluster.
- Create
Time string - Create time of the CLB.
- Internet
Bandwidth float64Max Out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- Internet
Charge stringType - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - Local
Zone bool - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
- Network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - Numerical
Vpc float64Id - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
- Project
Id float64 - Project ID of the CLB.
- Security
Groups []string - ID set of the security groups.
- Status float64
- The status of CLB.
- Status
Time string - Latest state transition time of CLB.
- Subnet
Id string - ID of the subnet.
- map[string]string
- The available tags within this CLB.
- Target
Region stringInfo Region - Region information of backend service are attached the CLB.
- Target
Region stringInfo Vpc Id - VpcId information of backend service are attached the CLB.
- Vip
Isp string - Network operator, only applicable to open CLB. Valid values are
CMCC
(China Mobile),CTCC
(Telecom),CUCC
(China Unicom) andBGP
. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE). - Vpc
Id string - ID of the VPC.
- Zone string
- Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
- Zone
Id float64 - Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
- Zone
Name string - Available zone name, This field maybe null, means cannot get a valid value.
- Zone
Region string - Region that this available zone belong to, This field maybe null, means cannot get a valid value.
- address
Ip StringVersion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - clb
Id String - ID of the CLB to be queried.
- clb
Name String - Name of the CLB to be queried.
- clb
Vips List<String> - The virtual service address table of the CLB.
- cluster
Id String - ID of the cluster.
- create
Time String - Create time of the CLB.
- internet
Bandwidth DoubleMax Out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- internet
Charge StringType - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - local
Zone Boolean - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
- network
Type String - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - numerical
Vpc DoubleId - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
- project
Id Double - Project ID of the CLB.
- security
Groups List<String> - ID set of the security groups.
- status Double
- The status of CLB.
- status
Time String - Latest state transition time of CLB.
- subnet
Id String - ID of the subnet.
- Map<String,String>
- The available tags within this CLB.
- target
Region StringInfo Region - Region information of backend service are attached the CLB.
- target
Region StringInfo Vpc Id - VpcId information of backend service are attached the CLB.
- vip
Isp String - Network operator, only applicable to open CLB. Valid values are
CMCC
(China Mobile),CTCC
(Telecom),CUCC
(China Unicom) andBGP
. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE). - vpc
Id String - ID of the VPC.
- zone String
- Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
- zone
Id Double - Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
- zone
Name String - Available zone name, This field maybe null, means cannot get a valid value.
- zone
Region String - Region that this available zone belong to, This field maybe null, means cannot get a valid value.
- address
Ip stringVersion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - clb
Id string - ID of the CLB to be queried.
- clb
Name string - Name of the CLB to be queried.
- clb
Vips string[] - The virtual service address table of the CLB.
- cluster
Id string - ID of the cluster.
- create
Time string - Create time of the CLB.
- internet
Bandwidth numberMax Out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- internet
Charge stringType - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - local
Zone boolean - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
- network
Type string - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - numerical
Vpc numberId - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
- project
Id number - Project ID of the CLB.
- security
Groups string[] - ID set of the security groups.
- status number
- The status of CLB.
- status
Time string - Latest state transition time of CLB.
- subnet
Id string - ID of the subnet.
- {[key: string]: string}
- The available tags within this CLB.
- target
Region stringInfo Region - Region information of backend service are attached the CLB.
- target
Region stringInfo Vpc Id - VpcId information of backend service are attached the CLB.
- vip
Isp string - Network operator, only applicable to open CLB. Valid values are
CMCC
(China Mobile),CTCC
(Telecom),CUCC
(China Unicom) andBGP
. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE). - vpc
Id string - ID of the VPC.
- zone string
- Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
- zone
Id number - Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
- zone
Name string - Available zone name, This field maybe null, means cannot get a valid value.
- zone
Region string - Region that this available zone belong to, This field maybe null, means cannot get a valid value.
- address_
ip_ strversion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - 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_ floatmax_ out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- internet_
charge_ strtype - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_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
andINTERNAL
. - numerical_
vpc_ floatid - 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.
- Mapping[str, str]
- The available tags within this CLB.
- target_
region_ strinfo_ region - Region information of backend service are attached the CLB.
- target_
region_ strinfo_ vpc_ id - 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) andBGP
. 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.
- address
Ip StringVersion - IP version, only applicable to open CLB. Valid values are
IPV4
,IPV6
andIPv6FullChain
. - clb
Id String - ID of the CLB to be queried.
- clb
Name String - Name of the CLB to be queried.
- clb
Vips List<String> - The virtual service address table of the CLB.
- cluster
Id String - ID of the cluster.
- create
Time String - Create time of the CLB.
- internet
Bandwidth NumberMax Out - Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
- internet
Charge StringType - Internet charge type, only applicable to open CLB. Valid values are
TRAFFIC_POSTPAID_BY_HOUR
,BANDWIDTH_POSTPAID_BY_HOUR
andBANDWIDTH_PACKAGE
. - local
Zone Boolean - Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
- network
Type String - Type of CLB instance, and available values include
OPEN
andINTERNAL
. - numerical
Vpc NumberId - VPC ID in a numeric form. Note: This field may return null, indicating that no valid values can be obtained.
- project
Id Number - Project ID of the CLB.
- security
Groups List<String> - ID set of the security groups.
- status Number
- The status of CLB.
- status
Time String - Latest state transition time of CLB.
- subnet
Id String - ID of the subnet.
- Map<String>
- The available tags within this CLB.
- target
Region StringInfo Region - Region information of backend service are attached the CLB.
- target
Region StringInfo Vpc Id - VpcId information of backend service are attached the CLB.
- vip
Isp String - Network operator, only applicable to open CLB. Valid values are
CMCC
(China Mobile),CTCC
(Telecom),CUCC
(China Unicom) andBGP
. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE). - vpc
Id String - ID of the VPC.
- zone String
- Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
- zone
Id Number - Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
- zone
Name String - Available zone name, This field maybe null, means cannot get a valid value.
- zone
Region 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack