Creates an image build task.

Request information

Request line

PUT /repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build 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 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.
BuildRuleId Long Yes The ID of the image build rule.

Operation-specific request headers

None.

Request body

None.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

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

Response body parameters

None.

Examples

Sample requests

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

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
    "data": {},
    "requestId": "311F6255-78A0-463E-A1FE-7C65ADB770BC"
}