Sets the health status of an ECS instance in a scaling group.
Operation description
Operation description
The scaling group detects and removes instances that are in an unhealthy state, including ECS instances and elastic container instances. If you want to retain specific ECS instances or elastic container instances, put them in the standby or protection status. For more information, see EnterStandby and SetInstancesProtection.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:SetInstanceHealth |
update |
*ScalingGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance in the scaling group. |
i-bp1ap6bro51a7fsa**** |
| HealthStatus |
string |
Yes |
The health status that you want to set for the instance. Valid values:
|
Healthy |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B755AE57-6093-43E4-938E-DEA422A9**** |
Examples
Success response
JSON format
{
"RequestId": "B755AE57-6093-43E4-938E-DEA422A9****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.