Cancels an image build task for a repository.

Request information

Request line

POST /repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel HTTP/1.1

Request line parameters

Parameter Type Required Description
RepoNamespace String Yes The namespace to which the repository belongs. The name of the namespace must be 2 to 30 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It must not start with a hyphen or an underscore.
RepoName String Yes The name of the repository. The name must be 1 to 64 characters in length, and can contain lowercase letters, digits, hyphens (-), and underscores (_). It must not start with a hyphen or an underscore.
BuildId String Yes The ID of the image build task.

Operation-specific request headers

None.

Request body

None.

Request body parameters

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "data": {},
    "requestId": "String"
}

Examples

Sample requests

POST /repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel HTTP/1.1
<Common request headers>

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {},
    "requestId": "951CC83C-B61B-47F8-9D46-7000F3B46BB5"
}