Cancels an artifact build task.

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 CancelArtifactBuildTask

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

BuildTaskId String Yes i2ei-1234567

The ID of the artifact build task.

InstanceId String Yes cri-1234567

The ID of the Container Registry Enterprise Edition instance.

RegionId String Yes cn-hangzhou

The ID of the region.

Response parameters

Parameter Type Example Description
Code String success

The return code.

IsSuccess Boolean true

Indicates whether the call was successful.

RequestId String C4C7DD0C-C9D6-437A-A7EE-121EFD70D002

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CancelArtifactBuildTask
&BuildTaskId=i2ei-1234567
&InstanceId=cri-1234567
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>C4C7DD0C-C9D6-437A-A7EE-121EFD70D002</RequestId>
<Code>success</Code>

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.