Domain name for API request: cls.intl.tencentcloudapi.com.
This API is used to obtain metric subscription configurations.
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: DescribeHostMetricConfigs. |
| Version | Yes | String | Common Params. The value used for this API: 2020-10-16. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| TopicId | Yes | String | Metric Topic id - Get the log topic Id through Get Log Topic List. Note: BizType 0: log topic (default value), 1: metric topic. - Obtain the log topic Id through Create Log Topic. Note that BizType 0: log topic (default value), 1: metric topic. |
| Filters.N | No | Array of Filter | -configId - String - required: no - filter by [configId]. -Filter the name by [configuration name]. Type: String. Required: No. Each request can have up to 10 Filters. The upper limit of Filter.Values is 10. |
| Offset | No | Integer | Page offset. Default value: 0 |
| Limit | No | Integer | Maximum number of entries per page. Default value: 20. Maximum value: 100. |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number |
| Infos | Array of HostMetricConfig | Metric subscription configuration information. |
| 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. |
POST / HTTP/1.1
Host: cls.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeHostMetricConfigs
<Common request parameters>
{
"TopicId": "46c21ba9-b6ea-45f1-8710-5ad92b978b7a",
"Filters": [
{
"Key": "name",
"Values": [
"testxxx2"
]
}
]
}
{
"Response": {
"Infos": [
{
"ConfigId": "b64d4365-0d37-4db0-a603-1412e8bb747c",
"CreateTime": 1749800274,
"HostMetricItems": [
{
"Type": "cpu"
},
{
"Type": "mem"
},
{
"Type": "net"
},
{
"Type": "disk"
},
{
"Type": "system"
}
],
"Interval": 30000,
"MachineGroupIds": [
"4ca1de67-785b-4a0e-96d9-9d12c5c3ad18"
],
"Name": "testxxx2",
"UpdateTime": 1749800274
}
],
"RequestId": "72ecd45e-a95a-4803-98c7-32217fd722db",
"TotalCount": 1
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| AuthFailure | CAM signature/authentication error. |
| AuthFailure.UnauthorizedOperation | Request unauthorized. |
| FailedOperation | Operation failed. |
| InternalError | Internal error. |
| InternalError.DbError | DB Error. |
| InternalError.IllegalRole | Illegal role. |
| InvalidParameter | Incorrect parameter. |
| InvalidParameter.ParamError | Parameter error. |
| InvalidParameterValue | Incorrect parameter value. |
| LimitExceeded.RecordOutOfLimit | Record exceeds limit |
| MissingParameter | Missing parameter. |
| OperationDenied.AccountNotExists | The account does not exist. |
| UnauthorizedOperation | Unauthorized operation. |
| UnknownParameter | Unknown parameter error. |
| UnsupportedOperation | Unsupported operation. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback