All Products
Search
Document Center

Auto Scaling:SetInstancesProtection

Last Updated:Feb 28, 2024

Puts one or more Elastic Compute Service (ECS) instances into the Protected state.

Operation description

Puts one or more Elastic Compute Service (ECS) instances into the Protected state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ScalingGroupIdstringYes

The ID of the scaling group.

asg-bp18p2yfxow2dloq****
ProtectedFromScaleInbooleanYes

Specifies whether to put ECS instances into the Protected state. Auto Scaling does not remove ECS instances in the Protected state from scaling groups during scale-in activities.

  • true
  • false
true
InstanceIdsarrayYes

The IDs of the ECS instances.

stringYes

The ID of the ECS instance.

i-28wt4****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3****

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history