Extends the wait time of an ECS instance that is suspended after a lifecycle hook is triggered.
Operation description
Operation description
You can call this operation to extend the wait time only when the ECS instance is in the wait state.
The wait time of an ECS instance cannot exceed 6 hours. Each wait state can be extended up to 20 times.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:RecordLifecycleActionHeartbeat |
update |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| lifecycleHookId |
string |
Yes |
The ID of the lifecycle hook. |
ash-bp1fxuqyi98w0aib**** |
| lifecycleActionToken |
string |
Yes |
The wait state identifier of the scaling activity. When the instance is in the wait state, you can obtain this identifier from the details page of the message received from the MNS queue specified by the lifecycle hook. You can also call DescribeLifecycleActions to obtain this identifier. You can also obtain this value from the MNS topic specified by the lifecycle hook. |
F324B880-900E-4968-85DD-81691113**** |
| heartbeatTimeout |
integer |
No |
The wait time that a lifecycle hook sets for a scaling group activity. After the wait state times out, the default execution policy is executed. Valid values: 30 to 21600. Unit: seconds. After you create a lifecycle hook, you can call this operation to extend the wait time of an ECS instance. You can also call CompleteLifecycleAction to end the wait state of a scaling activity in advance. Default value: 600. |
600 |
| RegionId |
string |
No |
The region ID of the scaling group. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.