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

tencentcloud.getDcInstances

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 DC instances.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    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.GetDcInstancesArgs;
    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.getDcInstances(GetDcInstancesArgs.builder()
                .name("t")
                .build());
    
            final var id = TencentcloudFunctions.getDcInstances(GetDcInstancesArgs.builder()
                .dcxId("dc-kax48sg7")
                .build());
    
        }
    }
    
    variables:
      nameSelect:
        fn::invoke:
          function: tencentcloud:getDcInstances
          arguments:
            name: t
      id:
        fn::invoke:
          function: tencentcloud:getDcInstances
          arguments:
            dcxId: dc-kax48sg7
    

    Using getDcInstances

    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 getDcInstances(args: GetDcInstancesArgs, opts?: InvokeOptions): Promise<GetDcInstancesResult>
    function getDcInstancesOutput(args: GetDcInstancesOutputArgs, opts?: InvokeOptions): Output<GetDcInstancesResult>
    def get_dc_instances(dc_id: Optional[str] = None,
                         id: Optional[str] = None,
                         name: Optional[str] = None,
                         result_output_file: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDcInstancesResult
    def get_dc_instances_output(dc_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[GetDcInstancesResult]
    func GetDcInstances(ctx *Context, args *GetDcInstancesArgs, opts ...InvokeOption) (*GetDcInstancesResult, error)
    func GetDcInstancesOutput(ctx *Context, args *GetDcInstancesOutputArgs, opts ...InvokeOption) GetDcInstancesResultOutput

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

    public static class GetDcInstances 
    {
        public static Task<GetDcInstancesResult> InvokeAsync(GetDcInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetDcInstancesResult> Invoke(GetDcInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcInstancesResult> getDcInstances(GetDcInstancesArgs args, InvokeOptions options)
    public static Output<GetDcInstancesResult> getDcInstances(GetDcInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcInstances:getDcInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DcId string
    ID of the DC to be queried.
    Id string
    Name string
    Name of the DC to be queried.
    ResultOutputFile string
    Used to save results.
    DcId string
    ID of the DC to be queried.
    Id string
    Name string
    Name of the DC to be queried.
    ResultOutputFile string
    Used to save results.
    dcId String
    ID of the DC to be queried.
    id String
    name String
    Name of the DC to be queried.
    resultOutputFile String
    Used to save results.
    dcId string
    ID of the DC to be queried.
    id string
    name string
    Name of the DC to be queried.
    resultOutputFile string
    Used to save results.
    dc_id str
    ID of the DC to be queried.
    id str
    name str
    Name of the DC to be queried.
    result_output_file str
    Used to save results.
    dcId String
    ID of the DC to be queried.
    id String
    name String
    Name of the DC to be queried.
    resultOutputFile String
    Used to save results.

    getDcInstances Result

    The following output properties are available:

    Id string
    InstanceLists List<GetDcInstancesInstanceList>
    Information list of the DC.
    DcId string
    ID of the DC.
    Name string
    Name of the DC.
    ResultOutputFile string
    Id string
    InstanceLists []GetDcInstancesInstanceList
    Information list of the DC.
    DcId string
    ID of the DC.
    Name string
    Name of the DC.
    ResultOutputFile string
    id String
    instanceLists List<GetDcInstancesInstanceList>
    Information list of the DC.
    dcId String
    ID of the DC.
    name String
    Name of the DC.
    resultOutputFile String
    id string
    instanceLists GetDcInstancesInstanceList[]
    Information list of the DC.
    dcId string
    ID of the DC.
    name string
    Name of the DC.
    resultOutputFile string
    id str
    instance_lists Sequence[GetDcInstancesInstanceList]
    Information list of the DC.
    dc_id str
    ID of the DC.
    name str
    Name of the DC.
    result_output_file str
    id String
    instanceLists List<Property Map>
    Information list of the DC.
    dcId String
    ID of the DC.
    name String
    Name of the DC.
    resultOutputFile String

    Supporting Types

    GetDcInstancesInstanceList

    AccessPointId string
    Access point ID of tne DC.
    Bandwidth double
    Bandwidth of the DC.
    CircuitCode string
    The circuit code provided by the operator for the DC.
    CreateTime string
    Creation time of resource.
    CustomerAddress string
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    CustomerEmail string
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    CustomerName string
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    CustomerPhone string
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    DcId string
    ID of the DC to be queried.
    EnabledTime string
    Enable time of resource.
    ExpiredTime string
    Expire date of resource.
    FaultReportContactPerson string
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    FaultReportContactPhone string
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    LineOperator string
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    Location string
    The DC location where the connection is located.
    Name string
    Name of the DC to be queried.
    PortType string
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    RedundantDcId string
    ID of the redundant DC.
    State string
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    TencentAddress string
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.
    AccessPointId string
    Access point ID of tne DC.
    Bandwidth float64
    Bandwidth of the DC.
    CircuitCode string
    The circuit code provided by the operator for the DC.
    CreateTime string
    Creation time of resource.
    CustomerAddress string
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    CustomerEmail string
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    CustomerName string
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    CustomerPhone string
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    DcId string
    ID of the DC to be queried.
    EnabledTime string
    Enable time of resource.
    ExpiredTime string
    Expire date of resource.
    FaultReportContactPerson string
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    FaultReportContactPhone string
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    LineOperator string
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    Location string
    The DC location where the connection is located.
    Name string
    Name of the DC to be queried.
    PortType string
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    RedundantDcId string
    ID of the redundant DC.
    State string
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    TencentAddress string
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.
    accessPointId String
    Access point ID of tne DC.
    bandwidth Double
    Bandwidth of the DC.
    circuitCode String
    The circuit code provided by the operator for the DC.
    createTime String
    Creation time of resource.
    customerAddress String
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    customerEmail String
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerName String
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerPhone String
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    dcId String
    ID of the DC to be queried.
    enabledTime String
    Enable time of resource.
    expiredTime String
    Expire date of resource.
    faultReportContactPerson String
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    faultReportContactPhone String
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    lineOperator String
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    location String
    The DC location where the connection is located.
    name String
    Name of the DC to be queried.
    portType String
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    redundantDcId String
    ID of the redundant DC.
    state String
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    tencentAddress String
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.
    accessPointId string
    Access point ID of tne DC.
    bandwidth number
    Bandwidth of the DC.
    circuitCode string
    The circuit code provided by the operator for the DC.
    createTime string
    Creation time of resource.
    customerAddress string
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    customerEmail string
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerName string
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerPhone string
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    dcId string
    ID of the DC to be queried.
    enabledTime string
    Enable time of resource.
    expiredTime string
    Expire date of resource.
    faultReportContactPerson string
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    faultReportContactPhone string
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    lineOperator string
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    location string
    The DC location where the connection is located.
    name string
    Name of the DC to be queried.
    portType string
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    redundantDcId string
    ID of the redundant DC.
    state string
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    tencentAddress string
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.
    access_point_id str
    Access point ID of tne DC.
    bandwidth float
    Bandwidth of the DC.
    circuit_code str
    The circuit code provided by the operator for the DC.
    create_time str
    Creation time of resource.
    customer_address str
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    customer_email str
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customer_name str
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customer_phone str
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    dc_id str
    ID of the DC to be queried.
    enabled_time str
    Enable time of resource.
    expired_time str
    Expire date of resource.
    fault_report_contact_person str
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    fault_report_contact_phone str
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    line_operator str
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    location str
    The DC location where the connection is located.
    name str
    Name of the DC to be queried.
    port_type str
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    redundant_dc_id str
    ID of the redundant DC.
    state str
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    tencent_address str
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.
    accessPointId String
    Access point ID of tne DC.
    bandwidth Number
    Bandwidth of the DC.
    circuitCode String
    The circuit code provided by the operator for the DC.
    createTime String
    Creation time of resource.
    customerAddress String
    Interconnect IP of the DC within client. Note: This field may return null, indicating that no valid values are taken.
    customerEmail String
    Applicant email of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerName String
    Applicant name of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    customerPhone String
    Applicant phone number of the DC, the default is obtained from the account. Note: This field may return null, indicating that no valid values are taken.
    dcId String
    ID of the DC to be queried.
    enabledTime String
    Enable time of resource.
    expiredTime String
    Expire date of resource.
    faultReportContactPerson String
    Contact of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    faultReportContactPhone String
    Phone number of reporting a faulty. Note: This field may return null, indicating that no valid values are taken.
    lineOperator String
    Operator of the DC, and available values include ChinaTelecom, ChinaMobile, ChinaUnicom, In-houseWiring, ChinaOther and InternationalOperator.
    location String
    The DC location where the connection is located.
    name String
    Name of the DC to be queried.
    portType String
    Port type of the DC in client, and available values include 100Base-T, 1000Base-T, 1000Base-LX, 10GBase-T and 10GBase-LR. The default value is 1000Base-LX.
    redundantDcId String
    ID of the redundant DC.
    state String
    State of the DC, and available values include REJECTED, TOPAY, PAID, ALLOCATED, AVAILABLE, DELETING and DELETED.
    tencentAddress String
    Interconnect IP of the DC within Tencent. Note: This field may return null, indicating that no valid values are taken.

    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