GetArtifactSubscriptionTaskResult

Updated at: 2024-12-27 02:24

Queries the details of 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:GetArtifactSubscriptionTaskResultget
*Instance
acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The instance ID.

cri-90fxryf9pwf****
PageNointegerNo

The page number.

1
PageSizeintegerNo

The number of entries per page.

30
TaskIdstringYes

The task ID.

crast-y64sq01bgad****

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

0A8768F6-9B47-5127-A075-9CFB9F79181F
Codestring

The return value.

success
PageNointeger

The page number.

1
IsSuccessboolean

Indicates whether the 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.

1
TaskResultsarray<object>

The result of the artifact subscription task.

TaskResultsobject
InstanceIdstring

The instance ID.

cri-isj2wgaw4z9****
TaskIdstring

The task ID.

crast-wkpfwqozjiq****
RepoNamestring

The name of the repository.

test-reop
NamespaceNamestring

The name of the namespace.

test-ns
Tagstring

The image tag.

v2.0
Statusstring

The status of the task.

COMPLETED
Resultstring

The result of the task.

SUCCESS
StartTimelong

The start time of the subscription task.

1691719501000
EndTimelong

The end time of the subscription task.

1692756630000

Examples

Sample success responses

JSONformat

{
  "RequestId": "0A8768F6-9B47-5127-A075-9CFB9F79181F",
  "Code": "success",
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": 1,
  "TaskResults": [
    {
      "InstanceId": "cri-isj2wgaw4z9****",
      "TaskId": "crast-wkpfwqozjiq****",
      "RepoName": "test-reop",
      "NamespaceName": "test-ns",
      "Tag": "v2.0",
      "Status": "COMPLETED",
      "Result": "SUCCESS",
      "StartTime": 1691719501000,
      "EndTime": 1692756630000
    }
  ]
}

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