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
Parameter | Description |
---|---|
scanResultId | Required. ID of the ScanResult to return. 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. |