You can call this operation to scale in an application by removing one or more Elastic Compute Service (ECS) instances where the application is deployed.


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 headers

This operation only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

POST /pop/v5/changeorder/co_scale_in HTTP|HTTPS

Request parameters

Parameter Type Required Example Description
AppId String Yes 3616cdca-4f92-44***********************

The ID of the application that you want to scale in. You can call the ListApplication operation to query the application ID.

EccInfo String Yes 7040f221-42df-48e8-9*******************

The ID of the Elastic Compute Container (ECC) corresponding to the ECS instance that you want to remove for the application. Multiple ECC IDs are separated by commas (,). You can call the QueryApplicationStatus operation to query the ECC ID.

ForceStatus Boolean No false

Specifies whether to forcibly remove an ECS instance where the application is deployed. This parameter is set to true only after the ECS instance expires. In normal cases, this parameter is not specified.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

ChangeOrderId String ddf5a4c7-a507-4a6e****************

The ID of the change process for this operation. You can call the GetChangeOrderInfo operation to query the progress of this operation. No value is returned if forceStatus is set to true. You need to check the returned code to determine whether the operation is successful.


Sample requests

POST /pop/v5/changeorder/co_scale_in HTTP/1.1
Common request headers
  "AppId": ""
  "EccInfo": ""

Sample success responses

JSON format

    "Message": "success",
    "ChangeOrderId": "ddf5a4c7-a507-4a6e****************",
    "Code": 200

XML format


Error codes

For a list of error codes, visit the API Error Center.