Container Registry API, REST: Scanner.getLast
Returns the last finished ScanResult for the specified Image.
HTTP request
GET https://container-registry.api.il.nebius.cloud/container-registry/v1/images/{imageId}:lastScanResult
Path parameters
Parameter | Description |
---|---|
imageId | ID of the Image to get last finished ScanResult. The maximum string length in characters is 50. |
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 text format when the scan been finished. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
status | string Output only. The status of the ScanResult.
|
vulnerabilities | object Output only. Summary information about vulnerabilities found. A VulnerabilityStats resource. |
vulnerabilities. critical |
string (int64) Count of CRITICAL vulnerabilities. |
vulnerabilities. high |
string (int64) Count of HIGH vulnerabilities. |
vulnerabilities. medium |
string (int64) Count of MEDIUM vulnerabilities. |
vulnerabilities. low |
string (int64) Count of LOW vulnerabilities. |
vulnerabilities. negligible |
string (int64) Count of NEGLIGIBLE vulnerabilities. |
vulnerabilities. undefined |
string (int64) Count of other vulnerabilities. |