You can call this operation to abort a change.

  • After you call this operation, Web+ waits until any ongoing change is completed before it aborts the change you specified.
  • When a change is being aborted in the deployment environment, this operation cannot be called again.
  • The aborted change cannot be resumed.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request headers

This operation uses common request headers, instead of special request headers. For more information, see the "Common request headers" section in "Common request and response headers."

Request syntax

POST /pop/v1/wam/change/abort HTTP/1.1

Request parameters

Parameter Type Required? Example Description
ChangeId String Yes wc-5d3a963d5802611c4ddc****

The ID of the change to be aborted.

Response parameters

Parameter Type Example Description
Code String OK

The response code. The value is OK if the request is successful.

EnvChange

The information about the aborted change.

ChangeId String wc-5cdbd6d884b53b4bc95*****

The ID of the change.

EnvId String we-5d39b8ba6786bd4b149*****

The ID of the deployment environment.

StartTime String 1557911256210

The start time of the change.

Message String success

The response message. The value is success if the request is successful.

RequestId String 14A65FB3-DFD6-4D9A-83EA-9259C2D3****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com&<Common request parameters>
{
  "ChangeId":"wc-5cda75398047880ad2c8****"
}

Sample success response

XML format

<AbortChangeResponse>
    <Message>success</Message>
    <EnvChange>
        <ChangeId>wc-5cdbd79a84b53b4bc958****</ChangeId>
        <EnvId>we-5cdbd64084b53b4bc958****</EnvId>
        <StartTime>1557911450434</StartTime>
    </EnvChange>
    <RequestId>BED39BFD-3CBF-42F0-9711-C91E32BF****</RequestId>
    <Code>OK</Code>
</AbortChangeResponse>

JSON format

{
	"Message":"success",
	"RequestId":"3A6ECBAB-4A14-4412-AFE7-6B75D55A****",
	"EnvChange":{
		"EnvId":"we-5cdbd64084b53b4bc958****",
		"ChangeId":"wc-5cdbd6d884b53b4bc958****",
		"StartTime":1557911256210
	},
	"Code":"OK"
}

Error codes

HTTP status code Error code Error message Description
500 ResourceAuthFailed The specified resource does not exist or it does not belong to this Alibaba Cloud account. The error message returned because the specified resource does not exist or it does not belong to your Alibaba Cloud account.
400 ChangeOnAborting The change is being canceled. Please do not cancel again. The error message returned because the change is being aborted. Do not repeat the operation.
400 ChangeFinished An error occurred while stopping the change. The change is already complete. The error message returned because the change has been completed and cannot be aborted.

For more information about error codes, see API Error Center.