Amazon EC2 Auto Scaling
API Reference (API Version 2011-01-01)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


Moves the specified instances into the standby state.

For more information, see Temporarily Removing Instances from Your Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the Auto Scaling group.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1600.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Required: Yes


The IDs of the instances. You can specify up to 20 instances.

Type: Array of strings

Length Constraints: Minimum length of 1. Maximum length of 19.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Required: No


Indicates whether to decrement the desired capacity of the Auto Scaling group by the number of instances moved to Standby mode.

Type: Boolean

Required: Yes

Response Elements

The following element is returned by the service.


The activities related to moving instances into Standby mode.

Type: Array of Activity objects


For information about the errors that are common to all actions, see Common Errors.


You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).

HTTP Status Code: 500


Sample Request &AutoScalingGroupName=my-asg &InstanceIds.member.1=i-12345678 &ShouldDecrementDesiredCapacity=true &Version=2011-01-01 &AUTHPARAMS

Sample Response

<EnterStandbyResponse xmlns=""> <EnterStandbyResult> <Activities> <member> <ActivityId>12345678-1234-1234-1234-123456789012</ActivityId> <AutoScalingGroupName>my-asg</AutoScalingGroupName> <Description>Moving EC2 instance to Standby: i-12345678</Description> <Progress>50</Progress> <Cause>At 2015-06-13T22:35:50Z instance i-5b73d709 was moved to standby in response to a user request, shrinking the capacity from 4 to 3.</Cause> <StartTime>2015-06-13T22:35:50.884Z</StartTime> <Details>{"Availability Zone":"us-east-1a","SubnetID":"subnet-12345678"}</Details> <StatusCode>InProgress</StatusCode> </member> </Activities> </EnterStandbyResult> <ResponseMetadata> <RequestId>7c6e177f-f082-11e1-ac58-3714bEXAMPLE</RequestId> </ResponseMetadata> </EnterStandbyResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: