Queries vulnerability count statistics by UUID.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Uuids |
string |
Yes |
The unique identifier of the asset. If ImageVul is set to false, specify the host UUID. If ImageVul is set to true, specify the image ID. Separate multiple values with commas (,). |
391abd09184cbd3743d7f5ec125d****, e6aeb2a5b6004479398b0bcd1160**** |
| ImageVul |
boolean |
No |
Specifies whether to query image vulnerability statistics. Valid values:
Default value: false. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
FDF7B8D9-8493-4B90-8D13-E0C1FFCE5F97 |
| Data |
object |
The vulnerability statistics returned by asset unique identifier. The key of the map is the host UUID or image ID specified in the request. |
|
|
object |
The vulnerability count statistics for a single asset. |
||
| CveNum |
integer |
The number of Linux software vulnerabilities. |
1 |
| EmgNum |
integer |
The number of emergency vulnerabilities. This field is 0 when ImageVul is set to true. |
0 |
| SysNum |
integer |
The number of Windows system vulnerabilities. This field is 0 when ImageVul is set to true. |
0 |
| CmsNum |
integer |
The number of Web-CMS vulnerabilities. This field is 0 when ImageVul is set to true. |
0 |
| AppNum |
integer |
The number of application vulnerabilities. This field is 0 when ImageVul is set to true. |
0 |
| ScaNum |
integer |
The number of software composition analysis (SCA) vulnerabilities. |
2 |
| VulAsapSum |
integer |
The number of high-priority vulnerabilities. |
1 |
| VulLaterSum |
integer |
The number of medium-priority vulnerabilities. |
1 |
| VulNntfSum |
integer |
The number of low-priority vulnerabilities. |
1 |
| SysAsapNum |
integer |
The number of high-priority system vulnerabilities among Linux software vulnerabilities and Windows system vulnerabilities. |
1 |
Examples
Success response
JSON format
{
"RequestId": "FDF7B8D9-8493-4B90-8D13-E0C1FFCE5F97",
"Data": {
"key": {
"CveNum": 1,
"EmgNum": 0,
"SysNum": 0,
"CmsNum": 0,
"AppNum": 0,
"ScaNum": 2,
"VulAsapSum": 1,
"VulLaterSum": 1,
"VulNntfSum": 1,
"SysAsapNum": 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.