Container Registry API, REST: Scanner.List
Retrieves the list of ScanResults for specified Image.
HTTP request
GET https://container-registry.api.yandexcloud.kz/container-registry/v1/scans
Query parameters
|
Field |
Description |
|
imageId |
string The maximum string length in characters is 50. Includes only one of the fields ID of the Image or Repository to list ScanResults for. To get the image ID use a yandex.cloud.containerregistry.v1.ImageService.List request. |
|
repositoryId |
string The maximum string length in characters is 50. Includes only one of the fields ID of the Image or Repository to list ScanResults for. To get the image ID use a yandex.cloud.containerregistry.v1.ImageService.List request. |
|
pageSize |
string (int64) The maximum number of results per page to return. If the number of available Acceptable values are 0 to 1000, inclusive. |
|
pageToken |
string Page token. To get the next page of results, set The maximum string length in characters is 100. |
|
filter |
string A filter expression that filters resources listed in the response.
The maximum string length in characters is 1000. |
|
orderBy |
string An order expression that orders resources listed in the response.
The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"scanResults": [
{
"id": "string",
"imageId": "string",
"scannedAt": "string",
"status": "string",
"vulnerabilities": {
"critical": "string",
"high": "string",
"medium": "string",
"low": "string",
"negligible": "string",
"undefined": "string"
}
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
scanResults[] |
List of ScanResult resources. |
|
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
ScanResult
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. |