Queries the details of lifecycle actions triggered by lifecycle hooks during a scaling activity, including the action status, token, and IDs of affected Elastic Compute Service (ECS) instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeLifecycleActions |
get |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ScalingActivityId |
string |
Yes |
The ID of the scaling activity. |
asa-bp17mug9t0pegagw**** |
| LifecycleActionStatus |
string |
No |
The status of the lifecycle action. Valid values:
|
Pending |
| NextToken |
string |
No |
The pagination token that specifies the start of the next query. Set this parameter to the NextToken value returned by the previous call. If not specified, the query starts from the beginning. |
AAAAAcSz4VTb1Nq**** |
| MaxResults |
integer |
No |
The maximum number of entries to return on each page. Valid values: 1 to 50. Default value: 10. |
10 |
| RegionId |
string |
No |
The region ID of the scaling group. |
cn-qingdao |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The query token returned in this call. |
AAAAAcSz4VTb1Nq**** |
| RequestId |
string |
The ID of the request. |
42A742EB-FCF3-459E-9C62-E107048C17E3 |
| TotalCount |
integer |
The total number of the queried lifecycle actions. |
3 |
| MaxResults |
integer |
The maximum number of entries returned per page. |
3 |
| LifecycleActions |
array<object> |
The actions of the lifecycle hook. |
|
|
object |
The lifecycle actions. |
||
| LifecycleHookId |
string |
The ID of the lifecycle hook. |
ash-bp18uoft0deax0f7**** |
| LifecycleActionToken |
string |
The token of the lifecycle hook action. |
9C2E9DA7-F794-449A-ACF6-CEE24444F7BB |
| LifecycleActionStatus |
string |
The status of the lifecycle hook action. |
Pending |
| LifecycleActionResult |
string |
The subsequent action that Auto Scaling performs after the lifecycle hook times out. Valid values:
|
CONTINUE |
| InstanceIds |
array |
The IDs of the ECS instances on which the lifecycle hook takes effect. |
|
|
string |
The ID of the ECS instance on which the lifecycle hook takes effect. |
["i-bp11m3fzlqrgk5vh****","i-bp11m3fzlqrgk5vh****"] |
Examples
Success response
JSON format
{
"NextToken": "AAAAAcSz4VTb1Nq****",
"RequestId": "42A742EB-FCF3-459E-9C62-E107048C17E3",
"TotalCount": 3,
"MaxResults": 3,
"LifecycleActions": [
{
"LifecycleHookId": "ash-bp18uoft0deax0f7****",
"LifecycleActionToken": "9C2E9DA7-F794-449A-ACF6-CEE24444F7BB",
"LifecycleActionStatus": "Pending",
"LifecycleActionResult": "CONTINUE",
"InstanceIds": [
"[\"i-bp11m3fzlqrgk5vh****\",\"i-bp11m3fzlqrgk5vh****\"]"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.