Container Registry API, REST: Scanner.GetLast
Returns the last finished ScanResult for the specified Image.
HTTP request
GET https://container-registry.api.cloud.yandex.net/container-registry/v1/images/{imageId}:lastScanResult
Path parameters
Field |
Description |
imageId |
string Required field. ID of the Image to get last finished ScanResult. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"imageId": "string",
"scannedAt": "string",
"status": "string",
"vulnerabilities": {
"critical": "string",
"high": "string",
"medium": "string",
"low": "string",
"negligible": "string",
"undefined": "string"
}
}
A ScanResult resource.
Field |
Description |
id |
string Output only. ID of the ScanResult. |
imageId |
string Output only. ID of the Image that the ScanResult belongs to. |
scannedAt |
string (date-time) Output only. The timestamp in RFC3339 String in RFC3339 To work with values in this field, use the APIs described in the |
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 |
string (int64) Count of CRITICAL vulnerabilities. |
high |
string (int64) Count of HIGH vulnerabilities. |
medium |
string (int64) Count of MEDIUM vulnerabilities. |
low |
string (int64) Count of LOW vulnerabilities. |
negligible |
string (int64) Count of NEGLIGIBLE vulnerabilities. |
undefined |
string (int64) Count of other vulnerabilities. |