Search Vulnerabilities Over Time
POST {{cb_url}}/containers/v1beta/orgs/{{cb_org_key}}/inventory/overview/vulnerabilities_history
Search for the number of the vulnerabilities found in the deployed images over the specified time range.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
workloads.container.image | READ |
Request Schema
{
"criteria": {
"time": {
"range": "<string>",
"start": "<string>",
"end": "<string>"
},
"clusters": [
"<string>"
]
}
}
Request Body
{"criteria"=>{"time"=>{"range"=>"-3d"}, "clusters"=>["demo:cluster-one"]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"2023-04-29T10:00:07.596Z":{"CRITICAL":9,"HIGH":37,"LOW":51,"MEDIUM":36,"UNKNOWN":1},"2023-04-30T10:00:04.419Z":{"CRITICAL":11,"HIGH":40,"LOW":60,"MEDIUM":56,"UNKNOWN":13},"2023-05-01T10:00:10.253Z":{"CRITICAL":13,"HIGH":56,"LOW":77,"MEDIUM":76,"UNKNOWN":32}}