You can call this operation to move the specified ECS instances out of the standby state.

Description

If a Server Load Balancer (SLB) instance is specified in the scaling group, the weight of an ECS instance attached to the SLB instance is set to the value defined in the scaling configuration.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
InstanceId.N RepeatList Yes i-28wt4****

The IDs of the ECS instances. The value can be a JSON array consisting of multiple instance IDs. You can specify up to 20 instance IDs. Separate multiple IDs with commas (,).

ScalingGroupId String Yes AG6CQdPU8OKdwLjgZcJ****

The ID of the scaling group.

Action String Yes ExitStandby

The operation that you want to perform. Set the value to ExitStandby.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests


http://ess.aliyuncs.com/?Action=ExitStandby
&ScalingGroupId=AG6CQdPU8OKdwLjgZcJ****
&InstanceId.1=i-28wt4****
&<Common request parameters>

Sample success responses

XML format

<ExitStandbyResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</ExitStandbyResponse>

JSON format

{
	"RequestId":"473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For more information about error codes, visit 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 does not have permissions to call this operation. Contact the Alibaba Cloud account to grant permissions to the RAM user before trying 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 in the current account.