Restarts an application deployed on Elastic Compute Service (ECS) instances.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:ManageApplication |
none |
*Application
|
None | None |
Request syntax
POST /pop/v5/changeorder/co_restart HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
Yes |
The application ID. Call the ListApplication operation to obtain the application ID. For more information, see ListApplication. |
c627c157-560d******* |
| EccInfo |
string |
No |
The ID of the elastic compute container (ECC) that corresponds to the ECS instance on which to restart the application. Call the QueryApplicationStatus operation to obtain the ECC ID. For more information, see QueryApplicationStatus.
|
006c0ea5-5f8d-4398-af1e-********** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| ChangeOrderId |
string |
The change order ID. Call the GetChangeOrderInfo operation to query the restart progress. For more information, see GetChangeOrderInfo. |
a9557bac-ddd7-********************* |
| Code |
integer |
The HTTP status code. |
200 |
| Message |
string |
The additional information. |
success |
| RequestId |
string |
The request ID. |
D16979DC-4D42-**************** |
Examples
Success response
JSON format
{
"ChangeOrderId": "a9557bac-ddd7-*********************",
"Code": 200,
"Message": "success",
"RequestId": "D16979DC-4D42-****************"
}
Error codes
See Error CodesError Codes for a complete list.
Release notes
See Release NotesRelease Notes for a complete list.