Retrieves an artifact build rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetArtifactBuildRule |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
| ScopeType |
string |
No |
The scope of the rule. Valid values:
|
REPOSITORY |
| ScopeId |
string |
No |
The ID of the scope in which the rule takes effect. Valid values:
|
crr-8dz3aedjqlmk**** |
| ArtifactType |
string |
No |
The type of the accelerated image. Valid values:
|
ACCELERATED_IMAGE |
| BuildRuleId |
string |
No |
The build rule ID. |
crabr-o2670wqz2n70**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ArtifactType |
string |
The type of the accelerated image. Valid values:
|
ACCELERATED_IMAGE |
| BuildRuleId |
string |
The build rule ID. |
crabr-o2670wqz2n70**** |
| Code |
string |
The response code. Valid values:
|
success |
| IsSuccess |
boolean |
Indicates whether the API call is successful. Valid values:
|
true |
| Parameters |
object |
The additional parameters. |
|
| ImageIndexOnly |
boolean |
Indicates whether the index-only mode is enabled. |
false |
| Priority |
integer |
The task priority. Valid values: [1, 5]. |
3 |
| PriorityFile |
string |
The list of prefetch files for the accelerated image. Each line contains an absolute path. The list is Base64-encoded. |
L2hvbWUvdGVzdC8= |
| RequestId |
string |
The request ID. |
7A3E98F6-296C-54AC-A612-B75E7777D4C1 |
| ScopeId |
string |
The ID of the scope in which the rule takes effect. Valid values:
|
crr-8dz3aedjqlmk**** |
| ScopeType |
string |
The scope of the rule. Valid values:
|
REPOSITORY |
Examples
Success response
JSON format
{
"ArtifactType": "ACCELERATED_IMAGE",
"BuildRuleId": "crabr-o2670wqz2n70****\n",
"Code": "success",
"IsSuccess": true,
"Parameters": {
"ImageIndexOnly": false,
"Priority": 3,
"PriorityFile": "L2hvbWUvdGVzdC8="
},
"RequestId": "7A3E98F6-296C-54AC-A612-B75E7777D4C1",
"ScopeId": "crr-8dz3aedjqlmk****",
"ScopeType": "REPOSITORY"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.