Scales in an application.

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 headers

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

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. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

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

The ID of the elastic compute container (ECC) that corresponds to the Elastic Compute Service (ECS) instance to be removed for the application. Separate multiple ECC IDs with commas (,). You can call the QueryApplicationStatus operation to query the ECC ID. For more information, see QueryApplicationStatus.

ForceStatus Boolean No false

Specifies whether to forcibly unpublish the application from the ECS instance. You need to set the parameter to true only after the ECS instance expires. In normal cases, you do not need to set the parameter to true.

Response parameters

Parameter Type Example Description
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 scale-in operation. For more information, see GetChangeOrderInfo. No ID is generated if forceStatus is set to true. Determine whether the operation is successful based on the value of the Code parameter.

Code Integer 200

The HTTP status code.

Message String success

The returned message.

Examples

Sample requests

POST /pop/v5/changeorder/co_scale_in HTTP/1.1
Common request header
{
  "AppId": ""
  "EccInfo": ""
}

Sample success responses

XML format

<Message>success</Message>
<ChangeOrderId>ddf5a4c7-a507-4a6e****************</ChangeOrderId>
<Code>200</Code>

JSON format

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

Error codes

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