You can call this operation to pause an uncompleted change.

Note Only the changes in the changing state can be paused.

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

Request parameters

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

The ID of the change to be paused.

Response parameters

Parameter Type Example Description
Code String OK

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

EnvChange

The change information about the deployment environment.

ChangeId String wc-5d3fabad56fd7c14ac9*****

The ID of the change.

EnvId String we-5d39b8ba6786bd4b149*****

The ID of the deployment environment where the change occurred.

StartTime String 1564453805573

The start time of the change.

Message String success

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

RequestId String BF62BC0A-6672-41A2-8EE5-D5034AB*****

The ID of the request.

Examples

Sample request


http://webplus.cn-hangzhou.aliyuncs.com/pop/v1/wam/change/pause&<Common request parameters>
{
  "ChangeId": "wc-5d3fabad56fd7c14ac9*****"
}

Sample success response

XML format

<PauseChangeResponse>
    <Message>success</Message>
    <EnvChange>
        <EnvId>we-5d39b8ba6786bd4b149*****</EnvId>
        <StartTime>1564120637891</StartTime>
        <ChangeId>wc-5d3fabad56fd7c14ac9*****</ChangeId>
    </EnvChange>
    <RequestId>97CEF6FD-0266-4C15-8745-9325E2A*****</RequestId>
    <Code>OK</Code>
</PauseChangeResponse>

JSON format

{
	"Message":"success",
	"RequestId":"BF62BC0A-6672-41A2-8EE5-D5034AB*****",
	"EnvChange":{
		"EnvId":"we-5d39b8ba6786bd4b149*****",
		"ChangeId":"wc-5d3fabad56fd7c14ac9*****",
		"StartTime":1564453805573
	},
	"Code":"OK"
}

Error codes

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