Creates an accelerated image build rule for an image repository.
Operation description
Accelerated image build rules can be created only for Container Registry Advanced Edition instances. Basic Edition instances do not support this feature. For more information, see Specifications of different editions.
Accelerated images are not supported in Alibaba Finance Cloud regions or Alibaba Gov Cloud regions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateArtifactBuildRule |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-cxreylqvcyje**** |
| ScopeType |
string |
Yes |
The scope of the rule. Valid values:
|
REPOSITORY |
| ScopeId |
string |
Yes |
The scope ID.
|
crr-pmajihou6cg0**** |
| ArtifactType |
string |
Yes |
The type of the artifact.
|
ACCELERATED_IMAGE |
| Parameters |
object |
No |
Additional parameters. |
{} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
success |
| IsSuccess |
boolean |
Indicates whether the request was successful. |
true |
| RequestId |
string |
The request ID. |
C8E90AB5-0A96-5D12-9E59-11EE46360642 |
| BuildRuleId |
string |
The ID of the accelerated image building rule. |
crabr-7dfa5qye5**** |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "C8E90AB5-0A96-5D12-9E59-11EE46360642",
"BuildRuleId": "crabr-7dfa5qye5****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.