Suspends a process in a scaling group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | SuspendProcesses |
The operation that you want to perform. Set the value to SuspendProcesses. |
ScalingGroupId | String | Yes | asg-bp15oubotmrq11xe**** |
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. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the scaling group resides. |
Process.N | String | Yes | ScaleIn |
Process N that you want to suspend. Valid values of N: 1 to 100. Valid values:
You can suspend five types of processes. If you specify more than five types, the duplicate types are automatically removed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 3E2033F0-03B4-419D-BCE2-C2339DB51B30 |
The ID of the request. |
Examples
Sample requests
http(s)://ess.aliyuncs.com/?Action=SuspendProcesses
&ScalingGroupId=asg-bp15oubotmrq11xe****
&ClientToken=123e4567-e89b-12d3-a456-42665544****
&Process=["ScaleIn"]
&RegionId=cn-hangzhou
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<SuspendProcessesResponse>
<RequestId>3E2033F0-03B4-419D-BCE2-C2339DB51B30</RequestId>
</SuspendProcessesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "3E2033F0-03B4-419D-BCE2-C2339DB51B30"
}
Error codes
For a list of error codes, visit the API Error Center.
HTTP status code |
Error code |
Error message |
Description |
---|---|---|---|
404 |
InvalidScalingGroupId.NotFound |
The specified scaling group does not exist. |
The error message returned because the specified scaling group does not exist within the current Alibaba Cloud account. |
400 |
InvalidParameter |
The specified value of parameter "%s" is not valid. |
The error message returned because the value that you specified for a parameter is invalid. |