Obtain the number of scan results for an image version.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the image repository. |
cri-2j88dtld8yel**** |
| RepoId |
string |
No |
The name of the image tag. |
crr-c2i5yk6h6pu9d5o8 |
| Tag |
string |
No |
The ID of the security scan task. |
1 |
| ScanTaskId |
string |
No |
The digest of the image. |
47A3E5A3-6AD4-5F02-93B8-59F778AE25D4 |
| Digest |
string |
No |
The number of unknown-severity vulnerabilities. |
sha256:c9f370a4eb1c00d0b0d7212a0a9fa4a7697756c90f0f680afaf9737a25725f4c |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| UnknownSeverity |
integer |
The ID of the request. |
4 |
| RequestId |
string |
The total number of vulnerabilities detected on images. |
BC648259-91A7-4502-BED3-EDF64361FA83 |
| TotalSeverity |
integer |
The return value. |
196 |
| Code |
string |
The number of medium-severity vulnerabilities. |
success |
| MediumSeverity |
integer |
Indicates whether the request is successful. Valid values:
|
81 |
| IsSuccess |
boolean |
The number of high-severity vulnerabilities. |
true |
| HighSeverity |
integer |
The number of low-severity vulnerabilities. |
22 |
| LowSeverity |
integer |
Number of low-severity vulnerabilities |
89 |
Examples
Success response
JSON format
{
"UnknownSeverity": 4,
"RequestId": "BC648259-91A7-4502-BED3-EDF64361FA83",
"TotalSeverity": 196,
"Code": "success",
"MediumSeverity": 81,
"IsSuccess": true,
"HighSeverity": 22,
"LowSeverity": 89
}
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.