Creates an image build record based on a build rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:BuildRepositoryByRule |
create |
Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-asd6vujuhay0**** |
| RepoId |
string |
Yes |
The ID of the image repository. |
crr-8dz3aedjqlmk**** |
| BuildRuleId |
string |
Yes |
The ID of the image building rule. |
crbr-1j95g4bu2s1i**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful. |
true |
| RequestId |
string |
The request ID. |
B01B8857-A16E-40E9-A37E-764F15776FAA |
| BuildRecordId |
string |
The ID of the image building record. |
0A311FC5-B8C6-4332-80E4-539EB73**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "B01B8857-A16E-40E9-A37E-764F15776FAA",
"BuildRecordId": "0A311FC5-B8C6-4332-80E4-539EB73****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.