You can call this operation to suspend the specified processes in a scaling group.

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
Process.N RepeatList Yes ScaleIn

The activity type that you want to suspend. Valid values of N: 1 to 100. Valid values:

  • ScaleIn: removes ECS instances.
  • ScaleOut: adds ECS instances.
  • HealthCheck: performs health checks.
  • AlarmNotification: sends alarm notifications.
  • ScheduledAction: triggers scheduled tasks.

You can suspend five types of scaling activities. If you specify more than five types, the duplicate type is automatically removed.

ScalingGroupId String Yes asg-bp15oubotmrq11xe****

The ID of the scaling group.

Action String No SuspendProcesses

The operation that you want to perform. Set the value to SuspendProcesses.

Response parameters

Parameter Type Example Description
RequestId String 3E2033F0-03B4-419D-BCE2-C2339DB51B30

The ID of the request.

Examples

Sample requests


https://ess.aliyuncs.com/?Action=SuspendProcesses
&ScalingGroupId=asg-bp15oubotmrq11xe****
&Process.1=ScaleIn
&Process.2=ScaleOut
&<Common request parameters>

Sample success responses

XML format

<SuspendProcessesResponse>
    <RequestId>3E2033F0-03B4-419D-BCE2-C2339DB51B30</RequestId>
</SuspendProcessesResponse>

JSON format

{
	"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 in the current account.

400

InvalidParameter

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

The error message returned because the specified value of the parameter is invalid.