Manually sets the health status of an Elastic Compute Service (ECS) instance or elastic container instance in a scaling group. When automatic health checks cannot accurately detect instance health, call this operation to quickly identify and handle faulty instances based on your actual business and O\\\&M requirements.
Operation description
伸缩组会检测并移出处于不健康状态的 ECS 实例或 ECI 实例,如果您需要保留指定的 ECS 实例或 ECI 实例,请将 ECS 实例或 ECI 实例转入备用或者保护状态,更多信息,请参见 EnterStandby 和 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. |
i-bp1ap6bro51a7fsa**** |
| HealthStatus |
string |
Yes |
The health status of the instance. Valid values:
|
Healthy |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
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.