All Products
Search
Document Center

Auto Scaling:SuspendProcesses

更新時間:May 17, 2024

Suspends scaling processes. This operation empowers you to selectively pause distinct scaling processes within a particular scaling group, enabling you to carry out alternative tasks and achieve more granular management over your scaling operations.

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

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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see Ensure idempotence.

Process.N

String

No

ScaleIn

The type of process N that you want to suspend. Valid values of N: 1 to 100. Valid values of this parameter:

  • ScaleIn: the scale-in process

  • ScaleOut: the scale-out process

  • HealthCheck: the health check process

  • AlarmNotification: the process of executing an event-triggered task

  • ScheduledAction: the process of executing a scheduled task

Presently, Auto Scaling supports suspending the five mentioned process types. In cases where more than five types are specified, Auto Scaling will automatically disregard duplicates and proceed with suspending the unique process types.

RegionId

String

No

cn-hangzhou

The region ID of the scaling group.

Response parameters

Parameter

Type

Example

Description

RequestId

String

3E2033F0-03B4-419D-BCE2-C2339DB5****

The request ID.

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-C2339DB5****</RequestId>
</SuspendProcessesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "3E2033F0-03B4-419D-BCE2-C2339DB5****"
}

Error codes

For a list of error codes, see Service error codes.

HTTP status code

Error code

Error message

Description

404

InvalidScalingGroupId.NotFound

The specified scaling group does not exist.

The specified scaling group does not exist within the Alibaba Cloud account.

400

InvalidParameter

The specified value of parameter "%s" is not valid.

The value of a parameter is invalid.