All Products
Search
Document Center

Elastic Compute Service:CancelImagePipelineExecution

Last Updated:Mar 13, 2024

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

Operation 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-hangzhou
TemplateTagobject []No
Note This parameter is deprecated.
KeystringNo
Note This parameter is deprecated.
null
ValuestringNo
Note This parameter is deprecated.
null
ExecutionIdstringYes

The ID of the image build task.

exec-5fb8facb8ed7427c****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
400InvalidStatus.CancelFailedFailed to cancel execution,status is success, failed or cancelled.
403InvalidStatus.ImagePipelineExecution%s
404InvalidImagePipelineExecution.NotFoundThe specified image pipeline execution does not exist!

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 403
    delete Error Codes: 404
    Added Error Codes: 400