All Products
Search
Document Center

Container Registry:ListArtifactSubscriptionTask

Last Updated:Dec 16, 2025

Lists artifact subscription tasks.

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

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The instance ID.

cri-m9ob8792vm****
PageNointegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

30

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

81E7A039-A4EF-57D9-A100-88E5DCEF9D56
Codestring

The return value.

success
PageNointeger

The page number.

1
IsSuccessboolean

Indicates whether the API request is successful. Valid values:

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

The number of entries per page.

30
TotalCountinteger

The total number of entries returned.

5
Tasksarray<object>

The queried artifact subscription tasks.

Tasksobject
InstanceIdstring

The instance ID.

cri-7pd01myak****
TaskIdstring

The task ID.

crast-40le4es9yh0p****
TaskStatusstring

The status of the task.

RUNNING
TaskResultstring

The task result.

SUCCESS
TaskTypestring

The type of the task.

AUTO
StartTimestring

The start time of the artifact subscription task.

1695348301000
EndTimestring

The end time of the artifact subscription task.

1692756630000
ArtifactTypestring

The type of the artifact.

IMAGE
SourceProviderstring

The artifact source.

DOCKER_HUB
SourceRepoTypestring

The type of the source artifact.

PUBLIC
SourceNamespaceNamestring

The name of the source namespace.

library
SourceRepoNamestring

The name of the source repository.

nginx
NamespaceNamestring

The name of the namespace.

test-ns
RepoNamestring

The name of the repository.

test-repo
TagTotalCountlong

The total number of tags.

311
TagSubscriptionCountlong

The total number of subscribed tags.

3
Messagestring

The returned message.

success

Examples

Sample success responses

JSONformat

{
  "RequestId": "81E7A039-A4EF-57D9-A100-88E5DCEF9D56",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": 5,
  "Tasks": [
    {
      "InstanceId": "cri-7pd01myak****",
      "TaskId": "crast-40le4es9yh0p****",
      "TaskStatus": "RUNNING",
      "TaskResult": "SUCCESS",
      "TaskType": "AUTO",
      "StartTime": 1695348301000,
      "EndTime": 1692756630000,
      "ArtifactType": "IMAGE",
      "SourceProvider": "DOCKER_HUB",
      "SourceRepoType": "PUBLIC",
      "SourceNamespaceName": "library",
      "SourceRepoName": "nginx",
      "NamespaceName": "test-ns",
      "RepoName": "test-repo",
      "TagTotalCount": 311,
      "TagSubscriptionCount": 3,
      "Message": "success"
    }
  ]
}

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
No change history