All Products
Search
Document Center

Container Registry:ListArtifactSubscriptionRule

Last Updated:Dec 16, 2025

Lists the subscription rules of artifacts.

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
cr:ListArtifactSubscriptionRulelist
*Instance
acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The instance ID.

cri-c0o11woew0k****
PageNointegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.

30

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

07FC5654-C82A-59FA-A9D1-78B4EE443F86
Codestring

The return value.

success
PageNointeger

The page number.

1
IsSuccessboolean

Indicates whether the request is successful. Valid values:

  • true
  • false
true
PageSizeinteger

The number of entries per page.

30
TotalCountinteger

The total number of entries returned.

13
Rulesarray<object>

The queried artifact subscription rules.

Rulesobject

The queried artifact subscription rule.

InstanceIdstring

The instance ID.

cri-brlg4cbj2yl****
RuleIdstring

The rule ID.

crasr-mdbpung4i1rm****
SourceProviderstring

The source of the artifact.

Valid values:

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

The source namespace.

library
SourceRepoNamestring

The source repository.

nginx
NamespaceNamestring

The name of the source namespace.

test-ns
RepoNamestring

The name of the source repository.

test-repo
TagRegexpstring

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

release.*
TagCountlong

The number of subscribed images.

1
Overrideboolean

Indicates whether the original image is overwritten.

true
Accelerateboolean

Indicates whether an acceleration link is enabled 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
CreateTimelong

The time when the subscription rule was created.

1638187989000
ModifiedTimelong

The time when the subscription rule was modified.

1678341923385
Platformarray

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

Platformstring

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.
*/*

Examples

Sample success responses

JSONformat

{
  "RequestId": "07FC5654-C82A-59FA-A9D1-78B4EE443F86",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": 13,
  "Rules": [
    {
      "InstanceId": "cri-brlg4cbj2yl****",
      "RuleId": "crasr-mdbpung4i1rm****\n",
      "SourceProvider": "DOCKER_HUB",
      "SourceNamespaceName": "library",
      "SourceRepoName": "nginx",
      "NamespaceName": "test-ns",
      "RepoName": "test-repo",
      "TagRegexp": "release.*",
      "TagCount": 1,
      "Override": true,
      "Accelerate": true,
      "CreateTime": 1638187989000,
      "ModifiedTime": 1678341923385,
      "Platform": [
        "*/*"
      ]
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
403NoPrivilegeAccess is denied for the user.The user is not authorized.
500SystemErrorA system error occurred.An unknown error occurred.

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

Change history

Change timeSummary of changesOperation
2025-11-03API Description Update. The Error code has changed. The response structure of the API has changedView Change Details