Restart applications. Applicable to ECS applications.
Debugging
Request header
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
POST /pop/v5/changeorder/co_restart HTTPS|HTTP
Request parameters
Element | Type | Required | Example | Description |
---|---|---|---|---|
AppId | String | No | c627c157-560d******* |
The ID of the application that you want to stop. You can call the ListApplication operation to query the application ID. |
EccInfo | String | Yes | 006 c0ea5-5 f8 d-4398-af1e-*********** |
The Elastic Compute Service (ECS) IDs of the ECS instances to be restarted for the application instance. Separate multiple ECS instances with commas (,). If you do not specify this parameter, all instances under the application are stopped. For more information about how to obtain the EccId, see QueryApplicationStatus. |
Response parameters
Element | Type | Sample response | Description |
---|---|---|---|
ChangeOrderId | String | a9557bac-ddd7-********************* |
Change process ID, call GetChangeOrderInfo to obtain the progress of the stop. |
Code | Integer | 200 |
The code. |
Message | String | Success |
Call Information |
RequestId | String | D16979DC-4D42-**************** |
The ID of the request. |
Examples
Sample requests
POST /pop/v5/changeorder/co_stop HTTP/1.1
Sample success responses
XML
format
<Message>success</Message>
<ChangeOrderId>a9557bac-ddd7-*********************</ChangeOrderId>
<Code>200</Code>
JSON
format
{
"Message": "success",
"ChangeOrderId": "a9557bac-ddd7-*********************",
"Code": 200
}
Error codes.
For a list of error codes, visit the API Error Center.