Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to obtain the detailed automatic scaling records of a cluster.
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: DescribeAutoScaleRecords. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Instance ID. |
| Filters.N | No | Array of KeyValue | Record filter parameter, which can only be "StartTime", "EndTime", "StrategyName", "ActionStatus", or "ScaleAction". Time format. Either 2006-01-02 15:04:05 or 2006/01/02 15:04:05 for StartTime and EndTime. ActionStatus: 0 (INITED), 1 (SUCCESS), 2 (FAILED), 3 (LIMITED_SUCCESSED), 4 (IN_PROCESS), and 5 (IN_RETRY). ScaleAction: 1 (scale-out) and 2 (scale-in). |
| Offset | No | Integer | Pagination parameter. |
| Limit | No | Integer | Number of entries per page. Maximum value: 100. |
| RecordSource | No | Integer | Whether it is an auto scaling (0) or managed scaling (1) operation. |
| Asc | No | Integer | Whether to sort data in ascending order. Valid values: 1 (yes) and 0 (no). |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number of scaling records. |
| RecordList | Array of AutoScaleRecord | Record list. |
| 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: emr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAutoScaleRecords
<Common request parameters>
{
"InstanceId": "emr-3ap64zl6",
"Limit": 10,
"Offset": 0
}
{
"Response": {
"RecordList": [
{
"ActionStatus": "SUCCESS",
"ActionTime": "2024-11-05 19:38:10",
"CompensateCount": 0,
"CompensateFlag": 0,
"EndTime": "2024-11-05 19:38:37",
"ExpectScaleNum": 1,
"RetryCount": 0,
"RetryInfo": "Number of retries: 0\nRetry end time: 0000-00-00 00:00:00\nRetry reason: ",
"ScaleAction": "SCALE_IN",
"ScaleInfo": "Scale-in information: [before scale-in: 11 nodes, after scale-in: 10 nodes, succeeded: 1 node, failed: 0 nodes]",
"SpecInfo": "One node: AZ: Nanjing Zone 3\nSA2.LARGE8: CPU: 4 cores Memory: 8 GB\n\tSystem disk:\n \t\tBalanced SSD: 50 G\n\tData disk:\n\t\tEnhanced SSD: 100 G x 1\n\n",
"StrategyName": "Regression-re04",
"StrategyType": 1
}
],
"RequestId": "8ad457bc-16ca-4ed5-af21-3ed4b58d719b",
"TotalCount": 70
}
}
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 |
|---|---|
| InvalidParameter.InvalidFilterKey | Invalid filter parameter. |
| InvalidParameter.InvalidStartTimeOrEndTime | Invalid StartTime or EndTime parameter. |
| ResourceNotFound.InstanceNotFound | The instance cannot be found. |
文档反馈