Retrieves an artifact subscription task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetArtifactSubscriptionTask |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
| TaskId |
string |
Yes |
The task ID. |
crast-40le4es9yh0p**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| IsSuccess |
boolean |
Indicates whether the API call is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
12589EF7-96E2-4554-AAD7-F7209E88CAD3 |
| Code |
string |
The return code. |
success |
| InstanceId |
string |
The instance ID. |
cri-xkx6vujuhay0**** |
| TaskId |
string |
The task ID. |
crast-40le4es9yh0p**** |
| TaskStatus |
string |
The task status. |
RUNNING |
| TaskResult |
string |
The task result. |
SUCCESS |
| TaskType |
string |
The task type. |
AUTO |
| StartTime |
integer |
The start time. The value is a UNIX timestamp in milliseconds. |
1568718468000 |
| EndTime |
integer |
The end time. The value is a UNIX timestamp in milliseconds. |
1691979202000 |
| ArtifactType |
string |
The artifact type. |
IMAGE |
| SourceProvider |
string |
The artifact source. |
DOCKER_HUB |
| SourceRepoType |
string |
The source artifact type. |
PUBLIC |
| SourceNamespaceName |
string |
The source namespace. |
library |
| SourceRepoName |
string |
The source repository. |
nginx |
| NamespaceName |
string |
The ACR namespace. |
test |
| RepoName |
string |
The ACR repository. |
test-repo |
| TagTotalCount |
integer |
The total number of tags. |
6 |
| TagSubscriptionCount |
integer |
The number of subscribed tags. |
1 |
| Message |
string |
The returned message. |
success |
Examples
Success response
JSON format
{
"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 code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | A system error occurred. | An unknown error occurred. |
| 403 | NoPrivilege | Access is denied for the user. | The user is not authorized. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.