Cancels an artifact build task.


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 CancelArtifactBuildTask

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

BuildTaskId String Yes i2ei-12****

The ID of the artifact build task.

InstanceId String Yes cri-shac42yvqzvq****

The ID of the Container Registry instance.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
Code String success

The response code.

IsSuccess Boolean true

Indicates whether the API call is successful.

  • true: successful
  • false: failed
RequestId String C4C7DD0C-C9D6-437A-A7EE-121EFD70D002

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "C4C7DD0C-C9D6-437A-A7EE-121EFD70D002",
    "Code": "success"

Error codes

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