tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
tencentcloud.getDcxInstances
Start a Neo task
Explain and create a tencentcloud.getDcxInstances resource
tencentcloud 1.82.34 published on Wednesday, Nov 5, 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 dictionaryThe following arguments are supported:
- Dcx
Id string - ID of the dedicated tunnels to be queried.
- Id string
- Name string
- Name of the dedicated tunnels to be queried.
- Result
Output stringFile - Used to save results.
- Dcx
Id string - ID of the dedicated tunnels to be queried.
- Id string
- Name string
- Name of the dedicated tunnels to be queried.
- Result
Output stringFile - Used to save results.
- dcx
Id String - ID of the dedicated tunnels to be queried.
- id String
- name String
- Name of the dedicated tunnels to be queried.
- result
Output StringFile - Used to save results.
- dcx
Id string - ID of the dedicated tunnels to be queried.
- id string
- name string
- Name of the dedicated tunnels to be queried.
- result
Output stringFile - 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_ strfile - Used to save results.
- dcx
Id String - ID of the dedicated tunnels to be queried.
- id String
- name String
- Name of the dedicated tunnels to be queried.
- result
Output StringFile - Used to save results.
getDcxInstances Result
The following output properties are available:
- Id string
- Instance
Lists List<GetDcx Instances Instance List> - Information list of the dedicated tunnels.
- Dcx
Id string - ID of the dedicated tunnel.
- Name string
- Name of the dedicated tunnel.
- Result
Output stringFile
- Id string
- Instance
Lists []GetDcx Instances Instance List - Information list of the dedicated tunnels.
- Dcx
Id string - ID of the dedicated tunnel.
- Name string
- Name of the dedicated tunnel.
- Result
Output stringFile
- id String
- instance
Lists List<GetDcx Instances Instance List> - Information list of the dedicated tunnels.
- dcx
Id String - ID of the dedicated tunnel.
- name String
- Name of the dedicated tunnel.
- result
Output StringFile
- id string
- instance
Lists GetDcx Instances Instance List[] - Information list of the dedicated tunnels.
- dcx
Id string - ID of the dedicated tunnel.
- name string
- Name of the dedicated tunnel.
- result
Output stringFile
- id str
- instance_
lists Sequence[GetDcx Instances Instance List] - Information list of the dedicated tunnels.
- dcx_
id str - ID of the dedicated tunnel.
- name str
- Name of the dedicated tunnel.
- result_
output_ strfile
- id String
- instance
Lists List<Property Map> - Information list of the dedicated tunnels.
- dcx
Id String - ID of the dedicated tunnel.
- name String
- Name of the dedicated tunnel.
- result
Output StringFile
Supporting Types
GetDcxInstancesInstanceList
- Bandwidth double
- Bandwidth of the DC.
- Bgp
Asn double - BGP ASN of the user.
- Bgp
Auth stringKey - BGP key of the user.
- Create
Time string - Creation time of resource.
- Customer
Address string - Interconnect IP of the DC within client.
- Dc
Id string - ID of the DC.
- Dcg
Id string - ID of the DC Gateway. Currently only new in the console.
- Dcx
Id string - ID of the dedicated tunnels to be queried.
- Name string
- Name of the dedicated tunnels to be queried.
- Network
Region string - The region of the dedicated tunnel.
- Network
Type string - Type of the network. Valid values:
VPC,BMVPCandCCN. The default value isVPC. - Route
Filter List<string>Prefixes - Static route, the network address of the user IDC.
- Route
Type string - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - State string
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - Tencent
Address string - Interconnect IP of the DC within Tencent.
- Vlan double
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means that only one tunnel can be created for the physical connect. - Vpc
Id string - ID of the VPC or BMVPC.
- Bandwidth float64
- Bandwidth of the DC.
- Bgp
Asn float64 - BGP ASN of the user.
- Bgp
Auth stringKey - BGP key of the user.
- Create
Time string - Creation time of resource.
- Customer
Address string - Interconnect IP of the DC within client.
- Dc
Id string - ID of the DC.
- Dcg
Id string - ID of the DC Gateway. Currently only new in the console.
- Dcx
Id string - ID of the dedicated tunnels to be queried.
- Name string
- Name of the dedicated tunnels to be queried.
- Network
Region string - The region of the dedicated tunnel.
- Network
Type string - Type of the network. Valid values:
VPC,BMVPCandCCN. The default value isVPC. - Route
Filter []stringPrefixes - Static route, the network address of the user IDC.
- Route
Type string - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - State string
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - Tencent
Address string - Interconnect IP of the DC within Tencent.
- Vlan float64
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means that only one tunnel can be created for the physical connect. - Vpc
Id string - ID of the VPC or BMVPC.
- bandwidth Double
- Bandwidth of the DC.
- bgp
Asn Double - BGP ASN of the user.
- bgp
Auth StringKey - BGP key of the user.
- create
Time String - Creation time of resource.
- customer
Address String - Interconnect IP of the DC within client.
- dc
Id String - ID of the DC.
- dcg
Id String - ID of the DC Gateway. Currently only new in the console.
- dcx
Id String - ID of the dedicated tunnels to be queried.
- name String
- Name of the dedicated tunnels to be queried.
- network
Region String - The region of the dedicated tunnel.
- network
Type String - Type of the network. Valid values:
VPC,BMVPCandCCN. The default value isVPC. - route
Filter List<String>Prefixes - Static route, the network address of the user IDC.
- route
Type String - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - state String
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - tencent
Address String - Interconnect IP of the DC within Tencent.
- vlan Double
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means that only one tunnel can be created for the physical connect. - vpc
Id String - ID of the VPC or BMVPC.
- bandwidth number
- Bandwidth of the DC.
- bgp
Asn number - BGP ASN of the user.
- bgp
Auth stringKey - BGP key of the user.
- create
Time string - Creation time of resource.
- customer
Address string - Interconnect IP of the DC within client.
- dc
Id string - ID of the DC.
- dcg
Id string - ID of the DC Gateway. Currently only new in the console.
- dcx
Id string - ID of the dedicated tunnels to be queried.
- name string
- Name of the dedicated tunnels to be queried.
- network
Region string - The region of the dedicated tunnel.
- network
Type string - Type of the network. Valid values:
VPC,BMVPCandCCN. The default value isVPC. - route
Filter string[]Prefixes - Static route, the network address of the user IDC.
- route
Type string - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - state string
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - tencent
Address string - Interconnect IP of the DC within Tencent.
- vlan number
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means that only one tunnel can be created for the physical connect. - vpc
Id string - ID of the VPC or BMVPC.
- bandwidth float
- Bandwidth of the DC.
- bgp_
asn float - BGP ASN of the user.
- bgp_
auth_ strkey - 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,BMVPCandCCN. The default value isVPC. - route_
filter_ Sequence[str]prefixes - Static route, the network address of the user IDC.
- route_
type str - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - state str
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - tencent_
address str - Interconnect IP of the DC within Tencent.
- vlan float
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means 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.
- bgp
Asn Number - BGP ASN of the user.
- bgp
Auth StringKey - BGP key of the user.
- create
Time String - Creation time of resource.
- customer
Address String - Interconnect IP of the DC within client.
- dc
Id String - ID of the DC.
- dcg
Id String - ID of the DC Gateway. Currently only new in the console.
- dcx
Id String - ID of the dedicated tunnels to be queried.
- name String
- Name of the dedicated tunnels to be queried.
- network
Region String - The region of the dedicated tunnel.
- network
Type String - Type of the network. Valid values:
VPC,BMVPCandCCN. The default value isVPC. - route
Filter List<String>Prefixes - Static route, the network address of the user IDC.
- route
Type String - Type of the route. Valid values:
BGPandSTATIC. The default value isBGP. - state String
- State of the dedicated tunnels. Valid values:
PENDING,ALLOCATING,ALLOCATED,ALTERING,DELETING,DELETED,COMFIRMINGandREJECTED. - tencent
Address String - Interconnect IP of the DC within Tencent.
- vlan Number
- Vlan of the dedicated tunnels. Valid value ranges: [0-3000].
0means that only one tunnel can be created for the physical connect. - vpc
Id String - ID of the VPC or BMVPC.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.34 published on Wednesday, Nov 5, 2025 by tencentcloudstack
