1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getClbResources
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.getClbResources

Start a Neo task
Explain and create a tencentcloud.getClbResources resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 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<GetClbResourcesFilter>
    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
    ResultOutputFile string
    Used to save results.
    Filters []GetClbResourcesFilter
    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
    ResultOutputFile string
    Used to save results.
    filters List<GetClbResourcesFilter>
    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
    resultOutputFile String
    Used to save results.
    filters GetClbResourcesFilter[]
    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
    resultOutputFile string
    Used to save results.
    filters Sequence[GetClbResourcesFilter]
    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_file str
    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
    resultOutputFile String
    Used to save results.

    getClbResources Result

    The following output properties are available:

    id String
    zoneResourceSets List<Property Map>
    List of resources supported by the AZ.
    filters List<Property Map>
    resultOutputFile String

    Supporting Types

    GetClbResourcesFilter

    Name string
    Filter name.
    Values List<string>
    Filter value array.
    Name string
    Filter name.
    Values []string
    Filter value array.
    name String
    Filter name.
    values List<String>
    Filter value array.
    name string
    Filter name.
    values string[]
    Filter value array.
    name str
    Filter name.
    values Sequence[str]
    Filter value array.
    name String
    Filter name.
    values List<String>
    Filter value array.

    GetClbResourcesZoneResourceSet

    EdgeZone bool
    Whether the AZ is an edge zone. Values: true, false.
    IpVersion string
    IP version. Values: IPv4, IPv6, and IPv6_Nat.
    LocalZone bool
    Whether the AZ is a LocalZone. Values: true, false.
    MasterZone string
    Primary AZ, such as ap-guangzhou-1.
    ResourceSets List<GetClbResourcesZoneResourceSetResourceSet>
    List of resources. Note: This field may return null, indicating that no valid values can be obtained.
    SlaveZone string
    Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
    ZoneRegion string
    Region of the AZ, such as ap-guangzhou.
    ZoneResourceType string
    Type of resources in the zone. Values: SHARED, EXCLUSIVE.
    EdgeZone bool
    Whether the AZ is an edge zone. Values: true, false.
    IpVersion string
    IP version. Values: IPv4, IPv6, and IPv6_Nat.
    LocalZone bool
    Whether the AZ is a LocalZone. Values: true, false.
    MasterZone string
    Primary AZ, such as ap-guangzhou-1.
    ResourceSets []GetClbResourcesZoneResourceSetResourceSet
    List of resources. Note: This field may return null, indicating that no valid values can be obtained.
    SlaveZone string
    Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
    ZoneRegion string
    Region of the AZ, such as ap-guangzhou.
    ZoneResourceType string
    Type of resources in the zone. Values: SHARED, EXCLUSIVE.
    edgeZone Boolean
    Whether the AZ is an edge zone. Values: true, false.
    ipVersion String
    IP version. Values: IPv4, IPv6, and IPv6_Nat.
    localZone Boolean
    Whether the AZ is a LocalZone. Values: true, false.
    masterZone String
    Primary AZ, such as ap-guangzhou-1.
    resourceSets List<GetClbResourcesZoneResourceSetResourceSet>
    List of resources. Note: This field may return null, indicating that no valid values can be obtained.
    slaveZone String
    Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
    zoneRegion String
    Region of the AZ, such as ap-guangzhou.
    zoneResourceType String
    Type of resources in the zone. Values: SHARED, EXCLUSIVE.
    edgeZone boolean
    Whether the AZ is an edge zone. Values: true, false.
    ipVersion string
    IP version. Values: IPv4, IPv6, and IPv6_Nat.
    localZone boolean
    Whether the AZ is a LocalZone. Values: true, false.
    masterZone string
    Primary AZ, such as ap-guangzhou-1.
    resourceSets GetClbResourcesZoneResourceSetResourceSet[]
    List of resources. Note: This field may return null, indicating that no valid values can be obtained.
    slaveZone string
    Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
    zoneRegion string
    Region of the AZ, such as ap-guangzhou.
    zoneResourceType string
    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[GetClbResourcesZoneResourceSetResourceSet]
    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_type str
    Type of resources in the zone. Values: SHARED, EXCLUSIVE.
    edgeZone Boolean
    Whether the AZ is an edge zone. Values: true, false.
    ipVersion String
    IP version. Values: IPv4, IPv6, and IPv6_Nat.
    localZone Boolean
    Whether the AZ is a LocalZone. Values: true, false.
    masterZone String
    Primary AZ, such as ap-guangzhou-1.
    resourceSets List<Property Map>
    List of resources. Note: This field may return null, indicating that no valid values can be obtained.
    slaveZone String
    Secondary AZ, such as ap-guangzhou-2. Note: This field may return null, indicating that no valid values can be obtained.
    zoneRegion String
    Region of the AZ, such as ap-guangzhou.
    zoneResourceType String
    Type of resources in the zone. Values: SHARED, EXCLUSIVE.

    GetClbResourcesZoneResourceSetResourceSet

    AvailabilitySets List<GetClbResourcesZoneResourceSetResourceSetAvailabilitySet>
    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.
    AvailabilitySets []GetClbResourcesZoneResourceSetResourceSetAvailabilitySet
    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.
    availabilitySets List<GetClbResourcesZoneResourceSetResourceSetAvailabilitySet>
    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.
    availabilitySets GetClbResourcesZoneResourceSetResourceSetAvailabilitySet[]
    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[GetClbResourcesZoneResourceSetResourceSetAvailabilitySet]
    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.
    availabilitySets 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 logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate