Container Registry API, gRPC: ScannerService.Get
Returns the specified ScanResult resource.
To get the list of ScanResults for specified Image, make a List request.
gRPC request
rpc Get (GetScanResultRequest) returns (ScanResult)
GetScanResultRequest
{
"scan_result_id": "string"
}
Field |
Description |
scan_result_id |
string Required field. ID of the ScanResult to return. |
ScanResult
{
"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"
}
}
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. |