You can call this operation to scale out an application by adding one or more Elastic Compute Service (ECS) instances.

Description

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 only uses common request headers. For more information, see the Common request parameters topic.

Request syntax

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

Request parameters

Parameter Type Required Example Description
AppId String 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.

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

The ID of the instance group to which you want to add ECS instances to scale out the application. You can call the QueryApplicationStatus operation to query the group ID.

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

The ID of the Elastic Compute Unit (ECU) corresponding to the ECS instance that you want to add to scale out the application. Multiple ECU IDs are separated by commas (,). You can call the ListScaleOutEcu operation to query the ECU ID.

Response parameters

Parameter Type Example Description
Code Integer 200

The returned code.

Message String success

The returned message.

ChangeOrderId String f4208118-7171-4e20-92************

The ID of the change process for this operation. You can call the GetChangeOrderInfo operation to query the progress of this operation.

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

Examples

Sample requests

POST /pop/v5/changeorder/co_scale_out HTTP/1.1
Common request headers
{
  "AppId": ""
  "DeployGroup": ""
  "EcuInfo": ""
}

Sample success responses

JSON format

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

XML format

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

Error codes

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