Generates 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-1j95g4bu2s1i5133

The ID of the build rule.

InstanceId String Yes cri-asd6vujuhay0tpgo

The ID of the instance.

RegionId String Yes cn-shanghai

The ID of the region where the instance resides.

RepoId String Yes crr-8dz3aedjqlmkr1qq

The ID of the image repository.

Response parameters

Parameter Type Example Description
IsSuccess Boolean true

Indicates whether the operation is successful.

Code String success

The code returned for the request.

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

The ID of the request.

BuildRecordId String 0A311FC5-B8C6-4332-80E4-539EB7395E10

The ID of the image build record.


Sample requests

http(s)://[Endpoint]/? Action=CreateBuildRecordByRule
&<Common request parameters>

Sample success responses

JSON format

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

XML format


Error codes

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