Container Registry API, gRPC: ScannerService.List
Retrieves the list of ScanResults for specified Image.
gRPC request
rpc List (ListScanResultsRequest) returns (ListScanResultsResponse)
ListScanResultsRequest
{
// Includes only one of the fields `image_id`, `repository_id`
"image_id": "string",
"repository_id": "string",
// end of the list of possible fields
"page_size": "int64",
"page_token": "string",
"filter": "string",
"order_by": "string"
}
Field |
Description |
image_id |
string Includes only one of the fields ID of the Image or Repository to list ScanResults for. To get the image ID use a yandex.cloud.containerregistry.v1.ImageService.List request. |
repository_id |
string Includes only one of the fields ID of the Image or Repository to list ScanResults for. To get the image ID use a yandex.cloud.containerregistry.v1.ImageService.List request. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, set |
filter |
string A filter expression that filters resources listed in the response.
|
order_by |
string An order expression that orders resources listed in the response.
|
ListScanResultsResponse
{
"scan_results": [
{
"id": "string",
"image_id": "string",
"scanned_at": "google.protobuf.Timestamp",
"status": "Status",
"vulnerabilities": {
"critical": "int64",
"high": "int64",
"medium": "int64",
"low": "int64",
"negligible": "int64",
"undefined": "int64"
}
}
],
"next_page_token": "string"
}
Field |
Description |
scan_results[] |
List of ScanResult resources. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
ScanResult
A ScanResult resource.
Field |
Description |
id |
string Output only. ID of the ScanResult. |
image_id |
string Output only. ID of the Image that the ScanResult belongs to. |
scanned_at |
Output only. The timestamp in RFC3339 |
status |
enum Status Output only. The status of the ScanResult.
|
vulnerabilities |
Output only. Summary information about vulnerabilities found. |
VulnerabilityStats
A VulnerabilityStats resource.
Field |
Description |
critical |
int64 Count of CRITICAL vulnerabilities. |
high |
int64 Count of HIGH vulnerabilities. |
medium |
int64 Count of MEDIUM vulnerabilities. |
low |
int64 Count of LOW vulnerabilities. |
negligible |
int64 Count of NEGLIGIBLE vulnerabilities. |
undefined |
int64 Count of other vulnerabilities. |