Stops an application. This operation is applicable to Alibaba Cloud Elastic Compute Service (ECS) clusters and hybrid cloud ECS clusters.

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_stop HTTP/1.1

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes c627c157-560d*******

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

EccInfo String Query No 74ee9166-****1f6-bcb60e5b****

The ID of the elastic compute container (ECC) that corresponds to the ECS instance on which you want to stop the application. You can call the QueryApplicationStatus operation to query the ECC ID. For more information, see QueryApplicationStatus.

  • If you want to stop the application on multiple ECS instances, separate the ECC IDs with commas (,).
  • If you leave this parameter empty, the application will be stopped on all ECS instances.

Response parameters

Parameter Type Example Description
ChangeOrderId String a9557bac-ddd7-*********************

The ID of the change process. You can call the GetChangeOrderInfo operation to query the details about the change process. 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_stop HTTP/1.1
Common request header
{
"AppId": "c627c157-560d*******"
}

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.