Extends the wait time for 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 suspended state.
The wait time of an ECS instance cannot exceed 6 hours, and 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 |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| lifecycleHookId |
string |
Yes |
The ID of the lifecycle hook. |
ash-bp1fxuqyi98w0aib**** |
| lifecycleActionToken |
string |
Yes |
The token that indicates the wait state of the scaling activity. You can obtain this token from the details of the message received from the Simple Message Queue (formerly MNS) queue specified by the lifecycle hook when the instance is in the suspended state. You can also call DescribeLifecycleActions to obtain this token. Alternatively, you can obtain this value from the Simple Message Queue (formerly MNS) topic specified by the lifecycle hook. |
F324B880-900E-4968-85DD-81691113**** |
| heartbeatTimeout |
integer |
No |
The wait time that the lifecycle hook sets for the scaling group activity. After the wait state times out, the default policy is executed. Valid values: 30 to 21600. Unit: seconds. After a lifecycle hook is created, you can call this operation to extend the wait time of the ECS instance, or call CompleteLifecycleAction to end the wait state of the 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.