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

tencentcloud.getDcxInstances

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 dedicated tunnels instances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const nameSelect = tencentcloud.getDcxInstances({
        name: "main",
    });
    const id = tencentcloud.getDcxInstances({
        dcxId: "dcx-3ikuw30k",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    name_select = tencentcloud.get_dcx_instances(name="main")
    id = tencentcloud.get_dcx_instances(dcx_id="dcx-3ikuw30k")
    
    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.GetDcxInstances(ctx, &tencentcloud.GetDcxInstancesArgs{
    			Name: pulumi.StringRef("main"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.GetDcxInstances(ctx, &tencentcloud.GetDcxInstancesArgs{
    			DcxId: pulumi.StringRef("dcx-3ikuw30k"),
    		}, 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 nameSelect = Tencentcloud.GetDcxInstances.Invoke(new()
        {
            Name = "main",
        });
    
        var id = Tencentcloud.GetDcxInstances.Invoke(new()
        {
            DcxId = "dcx-3ikuw30k",
        });
    
    });
    
    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.GetDcxInstancesArgs;
    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 nameSelect = TencentcloudFunctions.getDcxInstances(GetDcxInstancesArgs.builder()
                .name("main")
                .build());
    
            final var id = TencentcloudFunctions.getDcxInstances(GetDcxInstancesArgs.builder()
                .dcxId("dcx-3ikuw30k")
                .build());
    
        }
    }
    
    variables:
      nameSelect:
        fn::invoke:
          function: tencentcloud:getDcxInstances
          arguments:
            name: main
      id:
        fn::invoke:
          function: tencentcloud:getDcxInstances
          arguments:
            dcxId: dcx-3ikuw30k
    

    Using getDcxInstances

    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 getDcxInstances(args: GetDcxInstancesArgs, opts?: InvokeOptions): Promise<GetDcxInstancesResult>
    function getDcxInstancesOutput(args: GetDcxInstancesOutputArgs, opts?: InvokeOptions): Output<GetDcxInstancesResult>
    def get_dcx_instances(dcx_id: Optional[str] = None,
                          id: Optional[str] = None,
                          name: Optional[str] = None,
                          result_output_file: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDcxInstancesResult
    def get_dcx_instances_output(dcx_id: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          result_output_file: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDcxInstancesResult]
    func GetDcxInstances(ctx *Context, args *GetDcxInstancesArgs, opts ...InvokeOption) (*GetDcxInstancesResult, error)
    func GetDcxInstancesOutput(ctx *Context, args *GetDcxInstancesOutputArgs, opts ...InvokeOption) GetDcxInstancesResultOutput

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

    public static class GetDcxInstances 
    {
        public static Task<GetDcxInstancesResult> InvokeAsync(GetDcxInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetDcxInstancesResult> Invoke(GetDcxInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcxInstancesResult> getDcxInstances(GetDcxInstancesArgs args, InvokeOptions options)
    public static Output<GetDcxInstancesResult> getDcxInstances(GetDcxInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcxInstances:getDcxInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DcxId string
    ID of the dedicated tunnels to be queried.
    Id string
    Name string
    Name of the dedicated tunnels to be queried.
    ResultOutputFile string
    Used to save results.
    DcxId string
    ID of the dedicated tunnels to be queried.
    Id string
    Name string
    Name of the dedicated tunnels to be queried.
    ResultOutputFile string
    Used to save results.
    dcxId String
    ID of the dedicated tunnels to be queried.
    id String
    name String
    Name of the dedicated tunnels to be queried.
    resultOutputFile String
    Used to save results.
    dcxId string
    ID of the dedicated tunnels to be queried.
    id string
    name string
    Name of the dedicated tunnels to be queried.
    resultOutputFile string
    Used to save results.
    dcx_id str
    ID of the dedicated tunnels to be queried.
    id str
    name str
    Name of the dedicated tunnels to be queried.
    result_output_file str
    Used to save results.
    dcxId String
    ID of the dedicated tunnels to be queried.
    id String
    name String
    Name of the dedicated tunnels to be queried.
    resultOutputFile String
    Used to save results.

    getDcxInstances Result

    The following output properties are available:

    Id string
    InstanceLists List<GetDcxInstancesInstanceList>
    Information list of the dedicated tunnels.
    DcxId string
    ID of the dedicated tunnel.
    Name string
    Name of the dedicated tunnel.
    ResultOutputFile string
    Id string
    InstanceLists []GetDcxInstancesInstanceList
    Information list of the dedicated tunnels.
    DcxId string
    ID of the dedicated tunnel.
    Name string
    Name of the dedicated tunnel.
    ResultOutputFile string
    id String
    instanceLists List<GetDcxInstancesInstanceList>
    Information list of the dedicated tunnels.
    dcxId String
    ID of the dedicated tunnel.
    name String
    Name of the dedicated tunnel.
    resultOutputFile String
    id string
    instanceLists GetDcxInstancesInstanceList[]
    Information list of the dedicated tunnels.
    dcxId string
    ID of the dedicated tunnel.
    name string
    Name of the dedicated tunnel.
    resultOutputFile string
    id str
    instance_lists Sequence[GetDcxInstancesInstanceList]
    Information list of the dedicated tunnels.
    dcx_id str
    ID of the dedicated tunnel.
    name str
    Name of the dedicated tunnel.
    result_output_file str
    id String
    instanceLists List<Property Map>
    Information list of the dedicated tunnels.
    dcxId String
    ID of the dedicated tunnel.
    name String
    Name of the dedicated tunnel.
    resultOutputFile String

    Supporting Types

    GetDcxInstancesInstanceList

    Bandwidth double
    Bandwidth of the DC.
    BgpAsn double
    BGP ASN of the user.
    BgpAuthKey string
    BGP key of the user.
    CreateTime string
    Creation time of resource.
    CustomerAddress string
    Interconnect IP of the DC within client.
    DcId string
    ID of the DC.
    DcgId string
    ID of the DC Gateway. Currently only new in the console.
    DcxId string
    ID of the dedicated tunnels to be queried.
    Name string
    Name of the dedicated tunnels to be queried.
    NetworkRegion string
    The region of the dedicated tunnel.
    NetworkType string
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    RouteFilterPrefixes List<string>
    Static route, the network address of the user IDC.
    RouteType string
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    State string
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    TencentAddress string
    Interconnect IP of the DC within Tencent.
    Vlan double
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    VpcId string
    ID of the VPC or BMVPC.
    Bandwidth float64
    Bandwidth of the DC.
    BgpAsn float64
    BGP ASN of the user.
    BgpAuthKey string
    BGP key of the user.
    CreateTime string
    Creation time of resource.
    CustomerAddress string
    Interconnect IP of the DC within client.
    DcId string
    ID of the DC.
    DcgId string
    ID of the DC Gateway. Currently only new in the console.
    DcxId string
    ID of the dedicated tunnels to be queried.
    Name string
    Name of the dedicated tunnels to be queried.
    NetworkRegion string
    The region of the dedicated tunnel.
    NetworkType string
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    RouteFilterPrefixes []string
    Static route, the network address of the user IDC.
    RouteType string
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    State string
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    TencentAddress string
    Interconnect IP of the DC within Tencent.
    Vlan float64
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    VpcId string
    ID of the VPC or BMVPC.
    bandwidth Double
    Bandwidth of the DC.
    bgpAsn Double
    BGP ASN of the user.
    bgpAuthKey String
    BGP key of the user.
    createTime String
    Creation time of resource.
    customerAddress String
    Interconnect IP of the DC within client.
    dcId String
    ID of the DC.
    dcgId String
    ID of the DC Gateway. Currently only new in the console.
    dcxId String
    ID of the dedicated tunnels to be queried.
    name String
    Name of the dedicated tunnels to be queried.
    networkRegion String
    The region of the dedicated tunnel.
    networkType String
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    routeFilterPrefixes List<String>
    Static route, the network address of the user IDC.
    routeType String
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    state String
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    tencentAddress String
    Interconnect IP of the DC within Tencent.
    vlan Double
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    vpcId String
    ID of the VPC or BMVPC.
    bandwidth number
    Bandwidth of the DC.
    bgpAsn number
    BGP ASN of the user.
    bgpAuthKey string
    BGP key of the user.
    createTime string
    Creation time of resource.
    customerAddress string
    Interconnect IP of the DC within client.
    dcId string
    ID of the DC.
    dcgId string
    ID of the DC Gateway. Currently only new in the console.
    dcxId string
    ID of the dedicated tunnels to be queried.
    name string
    Name of the dedicated tunnels to be queried.
    networkRegion string
    The region of the dedicated tunnel.
    networkType string
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    routeFilterPrefixes string[]
    Static route, the network address of the user IDC.
    routeType string
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    state string
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    tencentAddress string
    Interconnect IP of the DC within Tencent.
    vlan number
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    vpcId string
    ID of the VPC or BMVPC.
    bandwidth float
    Bandwidth of the DC.
    bgp_asn float
    BGP ASN of the user.
    bgp_auth_key str
    BGP key of the user.
    create_time str
    Creation time of resource.
    customer_address str
    Interconnect IP of the DC within client.
    dc_id str
    ID of the DC.
    dcg_id str
    ID of the DC Gateway. Currently only new in the console.
    dcx_id str
    ID of the dedicated tunnels to be queried.
    name str
    Name of the dedicated tunnels to be queried.
    network_region str
    The region of the dedicated tunnel.
    network_type str
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    route_filter_prefixes Sequence[str]
    Static route, the network address of the user IDC.
    route_type str
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    state str
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    tencent_address str
    Interconnect IP of the DC within Tencent.
    vlan float
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    vpc_id str
    ID of the VPC or BMVPC.
    bandwidth Number
    Bandwidth of the DC.
    bgpAsn Number
    BGP ASN of the user.
    bgpAuthKey String
    BGP key of the user.
    createTime String
    Creation time of resource.
    customerAddress String
    Interconnect IP of the DC within client.
    dcId String
    ID of the DC.
    dcgId String
    ID of the DC Gateway. Currently only new in the console.
    dcxId String
    ID of the dedicated tunnels to be queried.
    name String
    Name of the dedicated tunnels to be queried.
    networkRegion String
    The region of the dedicated tunnel.
    networkType String
    Type of the network. Valid values: VPC, BMVPC and CCN. The default value is VPC.
    routeFilterPrefixes List<String>
    Static route, the network address of the user IDC.
    routeType String
    Type of the route. Valid values: BGP and STATIC. The default value is BGP.
    state String
    State of the dedicated tunnels. Valid values: PENDING, ALLOCATING, ALLOCATED, ALTERING, DELETING, DELETED, COMFIRMING and REJECTED.
    tencentAddress String
    Interconnect IP of the DC within Tencent.
    vlan Number
    Vlan of the dedicated tunnels. Valid value ranges: [0-3000]. 0 means that only one tunnel can be created for the physical connect.
    vpcId String
    ID of the VPC or BMVPC.

    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