Cancels an image build.

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 CancelRepoBuildRecord

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

BuildRecordId String Yes 74FDBA62-30C0-4F22-BE7B-F1D36FD1****

The ID of the image build record.

InstanceId String Yes cri-kmsiwlxxdcva****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-tquyps22md8p****

The ID of the repository.

Response parameters

Parameter Type Example Description
Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

RequestId String 4CE1F661-75DD-4EBD-A4AD-057B26834ABB

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CancelRepoBuildRecord
&BuildRecordId=74FDBA62-30C0-4F22-BE7B-F1D36FD1****
&InstanceId=cri-kmsiwlxxdcva****
&RegionId=cn-shanghai
&RepoId=crr-tquyps22md8p****
&<Common request parameters>

Sample success responses

XML format

<IsSuccess>true</IsSuccess>
<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>
<Code>success</Code>

JSON format

{
    "IsSuccess": true,
    "RequestId": "4CE1F661-75DD-4EBD-A4AD-057B26834ABB",
    "Code": "success"
}

Error codes

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