Domain name for API request: as.tencentcloudapi.com.
This API (DescribeAutoScalingActivities) is used to query the activity history of an auto scaling group.
A maximum of 20 requests can be initiated per second for this API.
Note: This API supports Finance regions. If the common parameter Region is a Finance region, a domain name with the Finance region needs to be specified, for example: as.ap-shanghai-fsi.tencentcloudapi.com
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 parameter. The value used for this API: DescribeAutoScalingActivities. |
Version | Yes | String | Common parameter. The value used for this API: 2018-04-19. |
Region | Yes | String | Common parameter. For more information, please see the list of regions supported by the product. |
ActivityIds.N | No | Array of String | Queries by one or more scaling activity IDs in the format of asa-5l2ejpfo . The maximum quantity per request is 100. This parameter does not support specifying both ActivityIds and Filters at the same time. |
Filters.N | No | Array of Filter | Filter. The maximum number of Filters per request is 10. The upper limit for Filter.Values is 5. This parameter does not support specifying both ActivityIds and Filters at the same time. |
Limit | No | Integer | Number of returned results. Default value: 20. Maximum value: 100. For more information on Limit , see the relevant section in the API overview. |
Offset | No | Integer | Offset. Default value: 0. For more information on Offset , see the relevant section in the API overview. |
StartTime | No | Timestamp | The earliest start time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in UTC time in the format of YYYY-MM-DDThh:mm:ssZ according to the ISO8601 standard. |
EndTime | No | Timestamp | The latest end time of the scaling activity, which will be ignored if ActivityIds is specified. The value is in UTC time in the format of YYYY-MM-DDThh:mm:ssZ according to the ISO8601 standard. |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of eligible scaling activities. |
ActivitySet | Array of Activity | Information set of eligible scaling activities. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
https://as.tencentcloudapi.com/?Action=DescribeAutoScalingActivities
&Filters.0.Name=activity-id
&Filters.0.Values.0=asa-o4v87ae9
&<common request parameters>
{
"Response": {
"TotalCount": 1,
"ActivitySet": [
{
"Description": "Activity was launched in response to a difference between desired capacity and actual capacity, scale out 1 instance(s).",
"AutoScalingGroupId": "asg-2umy3jbd",
"ActivityRelatedInstanceSet": [
{
"InstanceId": "ins-q3ss14yo",
"InstanceStatus": "SUCCESSFUL"
}
],
"ActivityType": "SCALE_OUT",
"ActivityId": "asa-o4v87ae9",
"StartTime": "2018-11-20T08:33:56Z",
"CreatedTime": "2018-11-20T08:33:56Z",
"EndTime": "2018-11-20T08:34:52Z",
"Cause": "Activity was launched in response to a difference between desired capacity and actual capacity.",
"StatusMessageSimplified": "Success",
"StatusMessage": "Success",
"StatusCode": "SUCCESSFUL"
}
],
"RequestId": "1082ab5d-c985-4d8c-bb9d-0d05e282b4a7"
}
}
https://as.tencentcloudapi.com/?Action=DescribeAutoScalingActivities
&ActivityIds.0=asa-o4v87ae9
&<common request parameters>
{
"Response": {
"TotalCount": 1,
"ActivitySet": [
{
"Description": "Activity was launched in response to a difference between desired capacity and actual capacity, scale out 1 instance(s).",
"AutoScalingGroupId": "asg-2umy3jbd",
"ActivityRelatedInstanceSet": [
{
"InstanceId": "ins-q3ss14yo",
"InstanceStatus": "SUCCESSFUL"
}
],
"ActivityType": "SCALE_OUT",
"ActivityId": "asa-o4v87ae9",
"StartTime": "2018-11-20T08:33:56Z",
"CreatedTime": "2018-11-20T08:33:56Z",
"EndTime": "2018-11-20T08:34:52Z",
"Cause": "Activity was launched in response to a difference between desired capacity and actual capacity.",
"StatusMessageSimplified": "Success",
"StatusMessage": "Success",
"StatusCode": "SUCCESSFUL"
}
],
"RequestId": "1082ab5d-c985-4d8c-bb9d-0d05e282b4a7"
}
}
This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.
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 |
---|---|
InternalError | Internal error. |
InvalidParameter.Conflict | Multiple parameters specified conflict and cannot co-exist. |
InvalidParameterValue.Filter | Invalid filter. |
InvalidParameterValue.LimitExceeded | The value exceeds the limit. |
Was this page helpful?