Scales out 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_out HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 3616cdca-4f92-4413*****************

The ID of the application that you want to scale out. You can call the ListApplication operation to query the application ID. For more information, see ListApplication.

DeployGroup String Query Yes 4f1fb6f5-6769-4bd6******************

The ID of the instance group where the application you want to scale out is deployed. You can call the QueryApplicationStatus operation to query the group ID. For more information, see QueryApplicationStatus.

EcuInfo String Query Yes 8123db90-880f-486f-b***************

The ID of the elastic compute unit (ECU) that corresponds to the Elastic Compute Service (ECS) instance to be added to the instance group for scale-out. You can call the ListScaleOutEcu operation to query the ECU ID. For more information, see ListScaleOutEcu. Separate multiple ECU IDs with commas (,).

Response parameters

Parameter Type Example Description
ChangeOrderId String f4208118-7171-4e20-92************

The ID of the change process. You can call the GetChangeOrderInfo operation to query the progress of this scale-out operation. For more information, see GetChangeOrderInfo.

Code Integer 200

The HTTP status code.

Message String success

The returned message.

RequestId String D16979DC-4D42-***********************

The ID of the request.

Examples

Sample requests

POST /pop/v5/changeorder/co_scale_out HTTP/1.1
Common request header
{
"AppId": "3616cdca-4f92-4413*****************",
"DeployGroup": "4f1fb6f5-6769-4bd6******************",
"EcuInfo": "8123db90-880f-486f-b***************"
}

Sample success responses

XML format

<Message>success</Message>
<ChangeOrderId>f4208118-7171-4e20-92************</ChangeOrderId>
<Code>200</Code>

JSON format

{
	"Message": "success",
	"ChangeOrderId": "f4208118-7171-4e20-92************",
	"Code": 200
}

Error codes

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