Creates an image build record based on a rule.


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 CreateBuildRecordByRule

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

BuildRuleId String Yes crbr-1j95g4bu2s1i****

The ID of the image build rule.

InstanceId String Yes cri-asd6vujuhay0****

The ID of the Container Registry instance.

RegionId String Yes cn-shanghai

The ID of the region.

RepoId String Yes crr-8dz3aedjqlmk****

The ID of the repository.

Response parameters

Parameter Type Example Description
BuildRecordId String 0A311FC5-B8C6-4332-80E4-539EB73****

The ID of the image build record.

Code String success

The return value.

IsSuccess Boolean true

Indicates whether the API call is successful.

RequestId String B01B8857-A16E-40E9-A37E-764F15776FAA

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "IsSuccess": true,
    "RequestId": "B01B8857-A16E-40E9-A37E-764F15776FAA",
    "BuildRecordId": "0A311FC5-B8C6-4332-80E4-539EB73****",
    "Code": "success"

Error codes

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