tencent cloud

Feedback

DescribeDedicatedClusterHosts

Last updated: 2024-11-27 15:19:25

1. API Description

Domain name for API request: cdc.intl.tencentcloudapi.com.

This API is used to query host information of the CDC

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeDedicatedClusterHosts.
Version Yes String Common Params. The value used for this API: 2020-12-14.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
DedicatedClusterId Yes String Cluster id
Offset No Integer Offset, 0 by default
Limit No Integer Number of returned pieces, 20 by default

3. Output Parameters

Parameter Name Type Description
HostInfoSet Array of HostInfo Host information
Note: The returned value of this field may be null, indicating that no valid value is obtained.
TotalCount Integer Total number of hosts
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Querying host information of the CDC

This example shows you how to query host information of the CDC

Input Example

POST / HTTP/1.1
Host: cdc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeDedicatedClusterHosts
<Common request parameters>

{
    "DedicatedClusterId": "cluster-nk6e8j6c"
}

Output Example

{
    "Response": {
        "HostInfoSet": [
            {
                "HostIp": "50.4.2.2",
                "ServiceType": "CVM Host",
                "HostStatus": "PENDING",
                "HostType": "Standard S5.21XLARGE320",
                "RunTime": "2022-03-29 16:37:01",
                "ExpireTime": "2025-03-29 16:37:01",
                "CpuAvailable": 24,
                "CpuTotal": 24,
                "MemAvailable": 96,
                "MemTotal": 96
            },
            {
                "HostIp": "50.4.2.3",
                "ServiceType": "CVM Host",
                "HostStatus": "PENDING",
                "HostType": "Standard S5.21XLARGE320",
                "RunTime": "2022-03-30 16:37:01",
                "ExpireTime": "2025-03-30 16:37:01",
                "CpuAvailable": 24,
                "CpuTotal": 24,
                "MemAvailable": 96,
                "MemTotal": 96
            }
        ],
        "TotalCount": 2,
        "RequestId": "7ffc723c-49d2-45ae-82cc-270aa35d3c59"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

There is no error code related to the API business logic. For other error codes, please see Common Error Codes.