Search Repositories
POST {{cb_url}}/containers/v1beta/orgs/{{cb_org_key}}/inventory/repositories/_search
Search for repositories and get a list of repositories matching the criteria and their metadata.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
workloads.container.image | READ |
Request Schema
{
"query": "<string>",
"start": <integer>,
"rows": <integer>,
"sort": [
{
"field": "<string>",
"order": "<string>"
},
{
"field": "<string>",
"order": "<string>"
}
]
}
Response Schema
{
"num_found": <integer>,
"results": [
{
"repo": "<string>",
"registry": "<string>",
"all_tags": <integer>,
"scanned_tags": <integer>,
"last_scan_time": "<string>"
}
]
}
Request Body
{"query"=>"proxy", "sort"=>[{"field"=>"last_scanned", "order"=>"DESC"}], "start"=>0, "rows"=>50}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
"{\n \"num_found\": 15,\n \"results\": [\n {\n \"repo\": \"kube-proxy-amd64\",\n \"registry\": \"my.demo.repo\",\n \"all_tags\": 4,\n \"scanned_tags\": 3,\n \"last_scan_time\": \"2023-05-01T11:38:17Z\"\n }\n}"