Creates an image building record based on an existing record.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:BuildRepositoryByRecord |
create |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-hpdfkc6utbaq**** |
| RepoId |
string |
Yes |
The ID of the image repository. |
crr-hnoq7j93or3k**** |
| BuildRecordId |
string |
Yes |
The ID of the image building record. |
0A311FC5-B8C6-4332-80E4-539EB73**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The HTTP status code. 200 indicates success. Other status codes indicate failure. |
success |
| IsSuccess |
boolean |
Indicates whether the request succeeded. Valid values:
|
true |
| RequestId |
string |
The request ID. |
4CE1F661-75DD-4EBD-A4AD-057B26834ABB |
| BuildRecordId |
string |
The ID of the image building record. |
crbr-ly77w5i3t31f**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "4CE1F661-75DD-4EBD-A4AD-057B26834ABB\n",
"BuildRecordId": "crbr-ly77w5i3t31f****\n"
}
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.