Queries the risk statistics of Docker Hub images.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetDockerhubImageRiskStatistic |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Types |
array |
No |
The risk types that you want to query. |
|
|
string |
No |
The dimension by which to query image risk statistics. Valid values:
|
totalScanned |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
7532B7EE-7CE7-5F4D-BF04-B12447DD**** |
| RiskRankInfo |
object |
The information about the risk source. |
|
| ScanTime |
integer |
The timestamp when the scan was performed. |
1693997625000 |
| ScanTimeTimestamp |
integer |
The timestamp when the scan was performed. |
1693997625000 |
| VulAsap |
integer |
The number of high-risk vulnerabilities. |
1 |
| Baseline |
integer |
The number of baseline risks. |
1 |
| TotalScanned |
integer |
The number of scanned Docker Hub images. |
1 |
Examples
Success response
JSON format
{
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****",
"RiskRankInfo": {
"ScanTime": 1693997625000,
"ScanTimeTimestamp": 1693997625000,
"VulAsap": 1,
"Baseline": 1,
"TotalScanned": 1
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.