This topic introduces how to disable a scaling group using the API.

Description

This operation disables a specified scaling group.

  • The scaling activities in progress before the scaling group is disabled are continued until completion, whereas scaling activities triggered after the scaling group is disabled are rejected.
  • The interface can be called only when the scaling group is active.

Request parameters

Name Type Required Description
Action String Yes Operation interface name, required parameter. Value: DisableScalingGroup
ScalingGroupId String Yes Scaling group ID

Response parameters

Public parameters.

Error code

For common errors, see client errors or server errors.

Error message Error code Description HTTP status code
The specified scaling group does not exist in this account. InvalidScalingGroupId.NotFound The specified scaling group does not exist. 404

Request example

http://ess.aliyuncs.com/?Action=DisableScalingGroup 
&ScalingGroupId=dmIDKNcyWfzncX9MWX1bwFV
&<Public Request Parameters>

Response example

XML format:

< DisableScalingGroupResponse>
    <RequestId>6469DCD0-13AC-487E-85A0-CE4922908FDE</RequestId>
</ DisableScalingGroupResponse>

JSON format:

{
"RequestId": "6469DCD0-13AC-487E-85A0-CE4922908FDE"
}