Get Dashboard Stats
GET/api/v32.07/stats/dashboard
x-prisma-cloud-target-env: {"permission":"monitorVuln"}
Returns statistics about the resources protected by Prisma Cloud Compute, including the total number of runtime audits, image vulnerabilities, and compliance violations.
cURL Request
Refer to the following example cURL command that retrieves dashboard stats:
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X GET \
https://<CONSOLE>/api/v<VERSION>/stats/dashboard
Responses
- 200
- default
Trends contains data on global trends in the system
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
complianceTrend object[]
ComplianceTrend represents the compliance trend.
Date holds the date the data was collected.
distribution object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
Modified is the time the data was modified.
defendersSummary object
DefendersSummary represents the defenders count of each category.
vulnerabilitySummary object
VulnerabilitySummary represents the stats of each impacted entity
containers object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
functions object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
hosts object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
images object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
registryImages object
Distribution counts the number of vulnerabilities per type
.
.
.
.
.
{
"complianceTrend": [
{
"_id": "string",
"distribution": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
},
"modified": "2024-07-29T15:51:28.071Z"
}
],
"defendersSummary": {},
"vulnerabilitySummary": {
"containers": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
},
"functions": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
},
"hosts": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
},
"images": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
},
"registryImages": {
"critical": 0,
"high": 0,
"low": 0,
"medium": 0,
"total": 0
}
}
}