tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getClbResources
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 resources
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const resources = tencentcloud.getClbResources({
filters: [{
name: "isp",
values: ["BGP"],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
resources = tencentcloud.get_clb_resources(filters=[{
"name": "isp",
"values": ["BGP"],
}])
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.GetClbResources(ctx, &tencentcloud.GetClbResourcesArgs{
Filters: []tencentcloud.GetClbResourcesFilter{
{
Name: "isp",
Values: []string{
"BGP",
},
},
},
}, 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 resources = Tencentcloud.GetClbResources.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetClbResourcesFilterInputArgs
{
Name = "isp",
Values = new[]
{
"BGP",
},
},
},
});
});
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.GetClbResourcesArgs;
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 resources = TencentcloudFunctions.getClbResources(GetClbResourcesArgs.builder()
.filters(GetClbResourcesFilterArgs.builder()
.name("isp")
.values("BGP")
.build())
.build());
}
}
variables:
resources:
fn::invoke:
function: tencentcloud:getClbResources
arguments:
filters:
- name: isp
values:
- BGP
Using getClbResources
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 getClbResources(args: GetClbResourcesArgs, opts?: InvokeOptions): Promise<GetClbResourcesResult>
function getClbResourcesOutput(args: GetClbResourcesOutputArgs, opts?: InvokeOptions): Output<GetClbResourcesResult>
def get_clb_resources(filters: Optional[Sequence[GetClbResourcesFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetClbResourcesResult
def get_clb_resources_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetClbResourcesFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClbResourcesResult]
func GetClbResources(ctx *Context, args *GetClbResourcesArgs, opts ...InvokeOption) (*GetClbResourcesResult, error)
func GetClbResourcesOutput(ctx *Context, args *GetClbResourcesOutputArgs, opts ...InvokeOption) GetClbResourcesResultOutput
> Note: This function is named GetClbResources
in the Go SDK.
public static class GetClbResources
{
public static Task<GetClbResourcesResult> InvokeAsync(GetClbResourcesArgs args, InvokeOptions? opts = null)
public static Output<GetClbResourcesResult> Invoke(GetClbResourcesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClbResourcesResult> getClbResources(GetClbResourcesArgs args, InvokeOptions options)
public static Output<GetClbResourcesResult> getClbResources(GetClbResourcesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getClbResources:getClbResources
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Clb Resources Filter> - Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- Id string
- Result
Output stringFile - Used to save results.
- Filters
[]Get
Clb Resources Filter - Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- Id string
- Result
Output stringFile - Used to save results.
- filters
List<Get
Clb Resources Filter> - Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- id String
- result
Output StringFile - Used to save results.
- filters
Get
Clb Resources Filter[] - Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- id string
- result
Output stringFile - Used to save results.
- filters
Sequence[Get
Clb Resources Filter] - Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- id str
- result_
output_ strfile - Used to save results.
- filters List<Property Map>
- Filter to query the list of AZ resources as detailed below: zone - String - Optional - Filter by AZ, such as ap-guangzhou-1. isp -- String - Optional - Filter by the ISP. Values: BGP, CMCC, CUCC and CTCC.
- id String
- result
Output StringFile - Used to save results.
getClbResources Result
The following output properties are available:
- Id string
- Zone
Resource List<GetSets Clb Resources Zone Resource Set> - List of resources supported by the AZ.
- Filters
List<Get
Clb Resources Filter> - Result
Output stringFile
- Id string
- Zone
Resource []GetSets Clb Resources Zone Resource Set - List of resources supported by the AZ.
- Filters
[]Get
Clb Resources Filter - Result
Output stringFile
- id String
- zone
Resource List<GetSets Clb Resources Zone Resource Set> - List of resources supported by the AZ.
- filters
List<Get
Clb Resources Filter> - result
Output StringFile
- id string
- zone
Resource GetSets Clb Resources Zone Resource Set[] - List of resources supported by the AZ.
- filters
Get
Clb Resources Filter[] - result
Output stringFile
- id str
- zone_
resource_ Sequence[Getsets Clb Resources Zone Resource Set] - List of resources supported by the AZ.
- filters
Sequence[Get
Clb Resources Filter] - result_
output_ strfile
- id String
- zone
Resource List<Property Map>Sets - List of resources supported by the AZ.
- filters List<Property Map>
- result
Output StringFile
Supporting Types
GetClbResourcesFilter
GetClbResourcesZoneResourceSet
- Edge
Zone bool - Whether the AZ is an edge zone. Values: true, false.
- Ip
Version string - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- Local
Zone bool - Whether the AZ is a LocalZone. Values: true, false.
- Master
Zone string - Primary AZ, such as ap-guangzhou-1.
- Resource
Sets List<GetClb Resources Zone Resource Set Resource Set> - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- Slave
Zone string - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- Zone
Region string - Region of the AZ, such as ap-guangzhou.
- Zone
Resource stringType - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
- Edge
Zone bool - Whether the AZ is an edge zone. Values: true, false.
- Ip
Version string - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- Local
Zone bool - Whether the AZ is a LocalZone. Values: true, false.
- Master
Zone string - Primary AZ, such as ap-guangzhou-1.
- Resource
Sets []GetClb Resources Zone Resource Set Resource Set - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- Slave
Zone string - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- Zone
Region string - Region of the AZ, such as ap-guangzhou.
- Zone
Resource stringType - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
- edge
Zone Boolean - Whether the AZ is an edge zone. Values: true, false.
- ip
Version String - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- local
Zone Boolean - Whether the AZ is a LocalZone. Values: true, false.
- master
Zone String - Primary AZ, such as ap-guangzhou-1.
- resource
Sets List<GetClb Resources Zone Resource Set Resource Set> - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- slave
Zone String - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- zone
Region String - Region of the AZ, such as ap-guangzhou.
- zone
Resource StringType - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
- edge
Zone boolean - Whether the AZ is an edge zone. Values: true, false.
- ip
Version string - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- local
Zone boolean - Whether the AZ is a LocalZone. Values: true, false.
- master
Zone string - Primary AZ, such as ap-guangzhou-1.
- resource
Sets GetClb Resources Zone Resource Set Resource Set[] - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- slave
Zone string - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- zone
Region string - Region of the AZ, such as ap-guangzhou.
- zone
Resource stringType - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
- edge_
zone bool - Whether the AZ is an edge zone. Values: true, false.
- ip_
version str - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- local_
zone bool - Whether the AZ is a LocalZone. Values: true, false.
- master_
zone str - Primary AZ, such as ap-guangzhou-1.
- resource_
sets Sequence[GetClb Resources Zone Resource Set Resource Set] - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- slave_
zone str - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- zone_
region str - Region of the AZ, such as ap-guangzhou.
- zone_
resource_ strtype - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
- edge
Zone Boolean - Whether the AZ is an edge zone. Values: true, false.
- ip
Version String - IP version. Values: IPv4, IPv6, and IPv6_Nat.
- local
Zone Boolean - Whether the AZ is a LocalZone. Values: true, false.
- master
Zone String - Primary AZ, such as ap-guangzhou-1.
- resource
Sets List<Property Map> - List of resources. Note: This field may return null, indicating that no valid values can be obtained.
- slave
Zone String - Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
- zone
Region String - Region of the AZ, such as ap-guangzhou.
- zone
Resource StringType - Type of resources in the zone. Values: SHARED, EXCLUSIVE.
GetClbResourcesZoneResourceSetResourceSet
- Availability
Sets List<GetClb Resources Zone Resource Set Resource Set Availability Set> - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- Isp string
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- Types List<string>
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- Availability
Sets []GetClb Resources Zone Resource Set Resource Set Availability Set - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- Isp string
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- Types []string
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability
Sets List<GetClb Resources Zone Resource Set Resource Set Availability Set> - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- isp String
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- types List<String>
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability
Sets GetClb Resources Zone Resource Set Resource Set Availability Set[] - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- isp string
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- types string[]
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability_
sets Sequence[GetClb Resources Zone Resource Set Resource Set Availability Set] - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- isp str
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- types Sequence[str]
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability
Sets List<Property Map> - Available resources. Note: This field may return null, indicating that no valid values can be obtaine.
- isp String
- ISP information, such as CMCC, CUCC, CTCC, BGP, and INTERNAL.
- types List<String>
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
GetClbResourcesZoneResourceSetResourceSetAvailabilitySet
- Availability string
- Whether the resource is available. Values: Available, Unavailable.
- Type string
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- Availability string
- Whether the resource is available. Values: Available, Unavailable.
- Type string
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability String
- Whether the resource is available. Values: Available, Unavailable.
- type String
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability string
- Whether the resource is available. Values: Available, Unavailable.
- type string
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability str
- Whether the resource is available. Values: Available, Unavailable.
- type str
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
- availability String
- Whether the resource is available. Values: Available, Unavailable.
- type String
- Specific ISP resource information, Vaules: CMCC, CUCC, CTCC, BGP, and INTERNAL.
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