Retrieves the scan status of a specific image tag.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:GetScan |
get |
*Repository
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cri-2j88dtld8yel**** |
| RepoId |
string |
No |
The ID of the repository. |
crr-uf082u9dg8do**** |
| Tag |
string |
No |
The image tag. |
1 |
| ScanTaskId |
string |
No |
The ID of the image scan task. |
838152F9-F725-5A52-A344-8972D65AC045 |
| Digest |
string |
No |
The image digest. |
67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529 |
| ScanType |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The scan status of the image. Valid values:
|
COMPLETE |
| Code |
string |
The return code. |
success |
| IsSuccess |
boolean |
Specifies whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
BC648259-91A7-4502-BED3-EDF64361FA83 |
| ScanService |
string |
The scan engine type. Valid values:
|
ACR_SCAN_SERVICE |
Examples
Success response
JSON format
{
"Status": "COMPLETE",
"Code": "success",
"IsSuccess": true,
"RequestId": "BC648259-91A7-4502-BED3-EDF64361FA83",
"ScanService": "ACR_SCAN_SERVICE"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.