Get Scan Log Facets
POST {{cb_url}}/containers/v1beta/orgs/{{cb_org_key}}/inventory/scan_logs/_facet
Get facets that can be used to guide other scan log searches.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
workloads.container.image | READ, CREATE |
Request Schema
{
"query": "<string>",
"criteria": {
"scan_time": {
"range": "<string>",
"start": "<string>",
"end": "<string>"
},
"full_tags": [
"<string>"
],
"repositories": [
"<string>"
],
"digests": [
"<string>"
],
"sources": [
"<string>"
],
"registries": [
"<string>"
],
"vulnerabilities": [
"<string>"
],
"clusters": [
"<string>"
],
"namespaces": [
"<string>"
]
},
"terms": {
"fields": [
"<string>"
],
"rows": <integer>
}
}
Request Body
{"query"=>"kube", "terms"=>{"fields"=>["clusters", "scan_status", "repositories"], "rows"=>50}, "criteria"=>{"scan_time"=>{}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"terms":[{"field":"scan_status","values":[{"name":"SCANNED","total":78},{"name":"SCAN_FAILED","total":1},{"name":"NOT_SCANNED","total":8},{"name":"PENDING_SCAN","total":4}]},{"field":"clusters","values":[{"name":"demo:cluster-one","total":14},{"name":"test:testing-cluster-one","total":14}]},{"field":"repositories","values":[{"name":"demoartifactory/cluster-scanner","total":1}]}]}