Yandex Cloud
  • Сервисы
  • Решения
  • Почему Yandex Cloud
  • Сообщество
  • Тарифы
  • Документация
  • Связаться с нами
Подключиться
Language / Region
© 2022 ООО «Яндекс.Облако»
Yandex Container Registry
  • Начало работы
  • Пошаговые инструкции
    • Все инструкции
    • Аутентифицироваться в Container Registry
    • Управление Docker-образом
      • Получить информацию об имеющихся Docker-образах
      • Создать Docker-образ
      • Загрузить Docker-образ в реестр
      • Скачать Docker-образ из реестра
      • Удалить Docker-образ из реестра
    • Управление Helm-чартом
      • Получить информацию об имеющихся Helm-чартах
      • Загрузить Helm-чарт в реестр
      • Скачать Helm-чарт из реестра
      • Удалить Helm-чарт из реестра
    • Управление реестром
      • Получить информацию об имеющихся реестрах
      • Создать реестр
      • Изменить реестр
      • Удалить реестр
    • Управление репозиторием
      • Получить информацию об имеющихся репозиториях
      • Создать репозиторий
    • Управление политиками автоматического удаления Docker-образов
      • Получить информацию об имеющихся политиках удаления
      • Создать политику удаления
      • Изменить политику удаления
      • Сделать тестовый запуск политики удаления
      • Удалить политику удаления
    • Сканирование Docker-образа на наличие уязвимостей
    • Работа с ролями
      • Назначить роль
      • Просмотреть назначенные роли
      • Отозвать роль
  • Yandex Container Solution
  • Практические руководства
    • Все руководства
    • Запуск Docker-образа на виртуальной машине
    • Создание триггера с помощью Yandex Cloud Functions
    • Настройка автоматического сканирования Docker-образа
  • Концепции
    • Обзор
    • Docker-образ
    • Том Docker
    • Реестр
    • Репозиторий
    • Политика автоматического удаления Docker-образов
    • Сканер уязвимостей
    • Триггер Yandex Cloud Functions
    • Резервное копирование
    • Квоты и лимиты
  • Управление доступом
  • Правила тарификации
  • Справочник API
    • Аутентификация в API
    • gRPC (англ.)
      • Overview
      • ImageService
      • LifecyclePolicyService
      • RegistryService
      • RepositoryService
      • ScannerService
      • OperationService
    • REST (англ.)
      • Overview
      • Image
        • Overview
        • delete
        • get
        • list
      • LifecyclePolicy
        • Overview
        • create
        • delete
        • dryRun
        • get
        • getDryRunResult
        • list
        • listDryRunResultAffectedImages
        • listDryRunResults
        • update
      • Registry
        • Overview
        • create
        • delete
        • get
        • list
        • listAccessBindings
        • listIpPermission
        • setAccessBindings
        • setIpPermission
        • update
        • updateAccessBindings
        • updateIpPermission
      • Repository
        • Overview
        • delete
        • get
        • getByName
        • list
        • listAccessBindings
        • setAccessBindings
        • updateAccessBindings
        • upsert
      • Scanner
        • Overview
        • get
        • getLast
        • list
        • listVulnerabilities
        • scan
  • Решение проблем
  • Вопросы и ответы
  1. Справочник API
  2. REST (англ.)
  3. Scanner
  4. list

Method list

Статья создана
Yandex Cloud
  • HTTP request
  • Query parameters
  • Response

Retrieves the list of ScanResults for specified Image.

HTTP request

GET https://container-registry.api.cloud.yandex.net/container-registry/v1/scans

Query parameters

Parameter Description
imageId The maximum string length in characters is 50.
repositoryId The maximum string length in characters is 50.
pageSize The maximum number of results per page to return. If the number of available results is larger than pageSize, the service returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Default value: 100. Acceptable values are 0 to 1000, inclusive.
pageToken Page token. To get the next page of results, set pageToken to the nextPageToken returned by a previous list request. The maximum string length in characters is 100.
filter A filter expression that filters resources listed in the response. The expression must specify: 1. The field name. Currently you can use filtering only on status field. 2. An = operator. 3. The value in double quotes ("). The maximum string length in characters is 1000.
orderBy An order expression that orders resources listed in the response. The expression must specify: 1. The field name. Currently you can use filtering only on status field. 2. Order selector. Currently you can use ordering only on ScanResult.status field (critical first). 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[] object

A ScanResult resource.

scanResults[].
id
string

Output only. ID of the ScanResult.

scanResults[].
imageId
string

Output only. ID of the Image that the ScanResult belongs to.

scanResults[].
scannedAt
string (date-time)

Output only. The timestamp in RFC3339 text format when the scan been finished.

String in RFC3339 text format.

scanResults[].
status
string

Output only. The status of the ScanResult.

  • RUNNING: Image scan is in progress.
  • READY: Image has been scanned and result is ready.
  • ERROR: Image scan is failed.
scanResults[].
vulnerabilities
object

Output only. Summary information about vulnerabilities found.

A VulnerabilityStats resource.

scanResults[].
vulnerabilities.
critical
string (int64)

Count of CRITICAL vulnerabilities.

scanResults[].
vulnerabilities.
high
string (int64)

Count of HIGH vulnerabilities.

scanResults[].
vulnerabilities.
medium
string (int64)

Count of MEDIUM vulnerabilities.

scanResults[].
vulnerabilities.
low
string (int64)

Count of LOW vulnerabilities.

scanResults[].
vulnerabilities.
negligible
string (int64)

Count of NEGLIGIBLE vulnerabilities.

scanResults[].
vulnerabilities.
undefined
string (int64)

Count of other vulnerabilities.

nextPageToken string

This token allows you to get the next page of results for list requests. If the number of results is larger than pageSize, use the nextPageToken as the value for the pageToken query parameter in the next list request. Each subsequent list request will have its own nextPageToken to continue paging through the results.

Была ли статья полезна?

Language / Region
© 2022 ООО «Яндекс.Облако»
В этой статье:
  • HTTP request
  • Query parameters
  • Response