Get Vulnerable Assets Stats - POST
POST/uve/api/v2/dashboard/vulnerabilities/vulnerableAsset
Returns overall stats like total vulnerabilities, total assets, vulnerability by severity across the life stage (code, build, deploy and run) per cloud provider. This API supports the account group and account Id filters in addition to the filters we have in the Get Vulnerable Assets endpoint.
Note: You need
vulnerabilityDashboard
feature withView
permission to access this endpoint. Verify if your permission group includes this feature using the Get Permission Group by ID endpoint. You can also check this in the Prisma Cloud console by ensuring that Dashboard > Vulnerability is enabled.
Request
- application/json
Body
List of Asset Types
List of Asset Life Cycles
List of Severities
List of Cloud Account Groups
List of Cloud Account IDs
List of Clusters
List of Namespaces
List of Account Names
Responses
- 200
- 400
- 401
- 403
- 429
Success
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
value object[]
stats object[]
vulnerabilities object
{
"value": [
{
"stage": "string",
"totalVulnerabilities": 0,
"assetType": "string",
"totalAssets": 0,
"stats": [
{
"provider": "string",
"repositories": 0,
"registries": 0,
"packages": 0,
"assets": 0,
"users": 0,
"cloudAccounts": 0,
"vulnerabilities": {
"criticalCount": 0,
"highCount": 0,
"mediumCount": 0,
"lowCount": 0
}
}
]
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
User doesn't have required role
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}
Rate Limit Exceeded
- application/json
- Schema
- Example (from schema)
Schema
{
"code": "string",
"message": "string",
"target": "string"
}