All Products
Search
Document Center

StartRepoBuildByRule

Last Updated: Jan 22, 2020

Description

You can call this operation to create a build based on a build rule.

Request information

Request line

  1. PUT /repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build HTTP/1.1

Request parameters

Parameter Type Required Description
RepoNamespace String Yes The namespace to which the image repository belongs. The name can contain lowercase letters, digits, hyphens (-), and underscores (), but 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 ().
BuildRuleId Long Yes The ID of the build rule.

Custom request headers

None.

Request body

None.

Response information

Response line

  1. HTTP/1.1 200 OK

Custom response headers

None.

Response body

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

Response body description

None.

Examples

Sample requets

  1. PUT /repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build HTTP/1.1
  2. <Common request headers>

Sample responses

  1. HTTP/1.1 200 OK
  2. <Common response headers>
  3. {
  4. "data": {},
  5. "requestId": "311F6255-78A0-463E-A1FE-7C65ADB770BC"
  6. }