Terminates a change order or rolls back the application.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request parameters and common response parameters.
Request syntax
PUT /pop/v1/sam/changeorder/AbortAndRollbackChangeOrder HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
ChangeOrderId | String | Query | Yes | ba386059-69b1-4e65-b1e5-0682d9fa**** | The ID of the change order. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 91F93257-7A4A-4BD3-9A7E-2F6EAE6D**** | The ID of the request. |
Message | String | success | The returned message. |
TraceId | String | 0a98a02315955564772843261e**** | The ID of the trace. It is used to query the details of a request. |
Data | Object | The details of the change order. |
|
ChangeOrderId | String | ba386059-69b1-4e65-b1e5-0682d9fa**** | The ID of the change order. |
ErrorCode | String | success | The error code.
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the change order was terminated or the application was rolled back. Valid values:
|
Examples
Sample requests
PUT /pop/v1/sam/changeorder/AbortAndRollbackChangeOrder?ChangeOrderId=ba386059-69b1-4e65-b1e5-0682d9fa**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<AbortAndRollbackChangeOrderResponse>
<RequestId>91F93257-7A4A-4BD3-9A7E-2F6EAE6D****</RequestId>
<Message>success</Message>
<TraceId>0a98a02315955564772843261e****</TraceId>
<Data>
<ChangeOrderId>ba386059-69b1-4e65-b1e5-0682d9fa****</ChangeOrderId>
</Data>
<ErrorCode>success</ErrorCode>
<Code>200</Code>
<Success>true</Success>
</AbortAndRollbackChangeOrderResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "91F93257-7A4A-4BD3-9A7E-2F6EAE6D****",
"Message" : "success",
"TraceId" : "0a98a02315955564772843261e****",
"Data" : {
"ChangeOrderId" : "ba386059-69b1-4e65-b1e5-0682d9fa****"
},
"ErrorCode" : "success",
"Code" : "200",
"Success" : true
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | The error message returned because the value of the %s parameter is invalid. This parameter cannot be left empty. |
400 | Resouce.no.permission | You are not authorized to operate on the specified resources. | The error message returned because you do not have the required permissions on the resources. |
400 | InvalidChangeOrder.NotFound | The current change order does not exist. | The error message returned because the specified change order cannot be found. |
400 | Application.ChangerOrder.Not.Running | The change order is not running and cannot be terminated. | The error message returned because the change order is not in the running state and cannot be terminated. |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The error message returned because the system is being upgraded. Try again later. |
400 | Application.ChangerOrderRunning | An application change process is in progress. Please try again later. | The error message returned because an application change is in progress. Try again later. |
For a list of error codes, visit the API Error Center.