Unlock the Power of AI

1 million free tokens

88% Price Reduction

Activate Now

GetArtifactSubscriptionTask

Updated at: 2024-12-27 02:25

Queries an artifact subscription task.

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:
    • The required resource types are displayed in bold characters.
    • 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:GetArtifactSubscriptionTask
*Instance
acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The instance ID.

cri-xkx6vujuhay0****
TaskIdstringYes

The task ID.

crast-40le4es9yh0p****

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object
IsSuccessboolean

Indicates whether the API request is successful. Valid values:

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

The request ID.

12589EF7-96E2-4554-AAD7-F7209E88CAD3
Codestring

The return value.

success
InstanceIdstring

The instance ID.

cri-xkx6vujuhay0****
TaskIdstring

The task ID.

crast-40le4es9yh0p****
TaskStatusstring

The status of the task.

RUNNING
TaskResultstring

The task results.

SUCCESS
TaskTypestring

The type of the task. Valid values:

AUTO
StartTimelong

The start time of the artifact subscription task.

1568718468000
EndTimelong

The end time of the artifact subscription task.

1691979202000
ArtifactTypestring

The artifact type.

IMAGE
SourceProviderstring

The artifact source.

DOCKER_HUB
SourceRepoTypestring

The type of the source repository.

PUBLIC
SourceNamespaceNamestring

The name of the source namespace.

library
SourceRepoNamestring

The name of the source repository.

nginx
NamespaceNamestring

The name of the Container Registry namespace.

test
RepoNamestring

The name of the Container Registry repository.

test-repo
TagTotalCountlong

The total number of tags.

6
TagSubscriptionCountlong

The total subscribed tags.

1
Messagestring

The return message.

success

Examples

Sample success responses

JSONformat

{
  "IsSuccess": true,
  "RequestId": "12589EF7-96E2-4554-AAD7-F7209E88CAD3",
  "Code": "success",
  "InstanceId": "cri-xkx6vujuhay0****",
  "TaskId": "crast-40le4es9yh0p****",
  "TaskStatus": "RUNNING",
  "TaskResult": "SUCCESS",
  "TaskType": "AUTO",
  "StartTime": 1568718468000,
  "EndTime": 1691979202000,
  "ArtifactType": "IMAGE",
  "SourceProvider": "DOCKER_HUB",
  "SourceRepoType": "PUBLIC",
  "SourceNamespaceName": "library",
  "SourceRepoName": "nginx",
  "NamespaceName": "test",
  "RepoName": "test-repo",
  "TagTotalCount": 6,
  "TagSubscriptionCount": 1,
  "Message": "success"
}

Error codes

HTTP status codeError codeError messageDescription
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
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

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare