Updates an artifact subscription rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:UpdateArtifactSubscriptionRule |
update |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-c0o11woew0k**** |
| RuleId |
string |
Yes |
The rule ID. |
crasr-mdbpung4i1rm**** |
| SourceProvider |
string |
No |
The source of the artifacts. Valid values:
Valid values:
|
DOCKER_HUB |
| SourceNamespaceName |
string |
No |
The name of the source namespace. |
library |
| SourceRepoName |
string |
No |
The source repository. |
nginx |
| NamespaceName |
string |
No |
The name of the Container Registry namespace. |
test-ns |
| RepoName |
string |
No |
The name of the Container Registry repository. |
test-repo |
| TagRegexp |
string |
No |
The image tags in the subscription source repository. Regular expressions are supported. |
release-v.* |
| TagCount |
integer |
No |
The number of subscribed images. |
1 |
| Override |
string |
No |
Whether to overwrite the original image. |
true |
| Accelerate |
string |
No |
Whether to enable an acceleration link for image subscription. This feature, currently in public preview, uses optimized scheduling policies and network links to speed up image subscription. |
true |
| Platform |
array |
No |
The operating system and architecture. For multi-arch source repositories, only images matching the specified OS and architecture are subscribed to the destination repository of the Enterprise Edition instance. |
|
|
string |
No |
The operating system and architecture. Valid values:
Valid values:
|
*/* |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Whether the request succeeded. Valid values:
|
true |
| RequestId |
string |
The request ID. |
02B27D80-FD32-5155-931A-93700779BB9E |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "02B27D80-FD32-5155-931A-93700779BB9E\n"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.