You can call this operation to cancel an image build task.

Description

Before you call this operation, make sure that the image build task to be canceled is in the BUILDING, DISTRIBUTING, or RELEASING state.

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 parameters

Parameter Type Required Example Description
Action String Yes CancelImagePipelineExecution

The operation that you want to perform. Set the value to CancelImagePipelineExecution.

ExecutionId String Yes exec-5fb8facb8ed7427c****

The ID of the image build task.

RegionId String Yes cn-hangzhou

The region ID of the image build task. You can call the DescribeRegions operation to query the most recent region list.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

https://ecs.aliyuncs.com/?Action=CancelImagePipelineExecution
&ExecutionId=exec-5fb8facb8ed7427c****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<CancelImagePipelineExecutionResponse>
      <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</CancelImagePipelineExecutionResponse>

JSON format

{
    "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For a list of error codes, visit the API Error Center.