Removes an Elastic Compute Service (ECS) instance from the Standby state.
Description
If a scaling group is associated with Server Load Balancer (SLB) instances, the weight of the ECS instance in the scaling group is set to the value that is specified in the scaling configuration when the ECS instance is removed from the Standby state.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ExitStandby |
The operation that you want to perform. Set the value to ExitStandby. |
ScalingGroupId | String | Yes | asg-bp1fo0dbtsbmqa9h**** |
The ID of the scaling group. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-42665544**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among different requests. The token can only contain ASCII characters and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
Async | Boolean | No | false |
Specifies whether to asynchronously remove the ECS instance from the Standby state. Valid values:
Default value: false. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the scaling group resides. |
InstanceId.N | String | Yes | i-28wt4**** |
The ID of ECS instance N. The value of this parameter can be a JSON array that consists of up to 20 instance IDs. Separate multiple instance IDs with commas (,). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
The ID of the request. |
ScalingActivityId | String | asa-2zeb04oym05qaceq**** |
The ID of the scaling activity. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=ExitStandby
&ScalingGroupId=asg-bp1fo0dbtsbmqa9h****
&ClientToken=123e4567-e89b-12d3-a456-42665544****
&InstanceId=["i-28wt4****"]
&Async=false
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ExitStandbyResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
<ScalingActivityId>asa-2zeb04oym05qaceq****</ScalingActivityId>
</ExitStandbyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"ScalingActivityId" : "asa-2zeb04oym05qaceq****"
}
Error codes
For a list of error codes, visit the API Error Center.
HTTP status code |
Error code |
Error message |
Description |
---|---|---|---|
403 |
Forbidden.Unauthorized |
A required authorization for the specified action is not supplied. |
The error message returned because the RAM user is not authorized to call this operation. Contact the owner of the Alibaba Cloud account to obtain the required permissions and try again. |
404 |
InvalidInstanceId.NotFound |
A required authorization for the specified action is not supplied. |
The error message returned because the specified ECS instance does not exist. |
404 |
InvalidScalingGroupId.NotFound |
The specified scaling group does not exist. |
The error message returned because the specified scaling group does not exist within the Alibaba Cloud account. |