Container Registry API, REST: Scanner.Get
Returns the specified ScanResult resource.
To get the list of ScanResults for specified Image, make a List request.
HTTP request
GET https://container-registry.api.cloud.yandex.net/container-registry/v1/scans/{scanResultId}
Path parameters
Field |
Description |
scanResultId |
string Required field. ID of the ScanResult to return. |
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. |