All Products
Search
Document Center

CancelRepoBuild

Last Updated: Jan 22, 2020

Description

You can call this operation to cancel a build of an image repository.

Request information

Request line

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

Request parameters

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

Custom request headers

None.

Request body

None.

Request body description

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Custom response headers

None.

Response body

  1. {
  2. "data": {},
  3. "requestId": "String"
  4. }

Examples

Sample requests

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

Sample responses

  1. HTTP/1.1 200 OK
  2. <Common response headers>
  3. {
  4. "data": {},
  5. "requestId": "951CC83C-B61B-47F8-9D46-7000F3B46BB5"
  6. }