UpdateArtifactSubscriptionRule

Updated at: 2025-03-11 03:16

Updates an artifact subscription rule.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
OperationAccess levelResource typeCondition keyAssociated operation
cr:UpdateArtifactSubscriptionRuleupdate
*Instance
acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The instance ID.

cri-c0o11woew0k****
RuleIdstringYes

The rule ID.

crasr-mdbpung4i1rm****
SourceProviderstringNo

The source of the artifacts.

Valid values:

  • DOCKER_HUB: Docker Hub
  • GCR: GCR
  • QUAY: Quay.io
DOCKER_HUB
SourceNamespaceNamestringNo

The name of the source namespace.

library
SourceRepoNamestringNo

The source repository.

nginx
NamespaceNamestringNo

The name of the Container Registry namespace.

test-ns
RepoNamestringNo

The name of the Container Registry repository.

test-repo
TagRegexpstringNo

The image tags in the subscription source repository. Regular expressions are supported.

release-v.*
TagCountstringNo

The number of subscribed images.

1
OverridestringNo

Specifies whether to overwrite the original image.

true
AcceleratestringNo

Specifies whether to enable an acceleration link for image subscription. The subscription acceleration feature is in public preview. The feature is optimized based on scheduling policies and network links to accelerate image subscription.

true
PlatformarrayNo

The operating system and architecture. If the source repository contains multi-arch images, only the images with the specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance.

stringNo

The operating system and architecture.

Valid values:

  • linux/arm: Linux/Arm
  • windows/x86: Windows/x86
  • */*: */*
  • linux/arm64: Linux/Arm64
  • windows/x86-64: Windows/x86-64
  • linux/amd64: Linux/AMD64
Enumeration Value:
  • linux/arm: linux/arm.
  • windows/x86: windows/x86.
  • */*: */*.
  • linux/arm64: linux/arm64.
  • windows/x86-64: windows/x86-64.
  • linux/amd64: linux/amd64.
*/*

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object
Codestring

The return value.

success
IsSuccessboolean

Indicates whether the API request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.
true
RequestIdstring

The request ID.

02B27D80-FD32-5155-931A-93700779BB9E

Examples

Sample success responses

JSONformat

{
  "Code": "success",
  "IsSuccess": true,
  "RequestId": "02B27D80-FD32-5155-931A-93700779BB9E\n"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
No change history
  • On this page (1)
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback
phone Contact Us