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.
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 |
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. |
This example shows you how to query host information of the CDC
POST / HTTP/1.1
Host: cdc.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeDedicatedClusterHosts
<Common request parameters>
{
"DedicatedClusterId": "cluster-nk6e8j6c"
}
{
"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"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Was this page helpful?