Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • AI Studio
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Yandex Container Registry
  • Начало работы
  • Yandex Container Solution
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • GetByRegistry
        • Create
        • Update
        • Delete
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • Решение проблем
  • Вопросы и ответы
  • Обучающие курсы

В этой статье:

  • gRPC request
  • GetScanPolicyByRegistryRequest
  • ScanPolicy
  • ScanRules
  • PushRule
  • ScheduledRule
  1. Справочник API
  2. gRPC (англ.)
  3. ScanPolicy
  4. GetByRegistry

Container Registry API, gRPC: ScanPolicyService.GetByRegistry

Статья создана
Yandex Cloud
Обновлена 26 ноября 2024 г.
  • gRPC request
  • GetScanPolicyByRegistryRequest
  • ScanPolicy
  • ScanRules
  • PushRule
  • ScheduledRule

Returns scan policy for the registry if any exists.

gRPC requestgRPC request

rpc GetByRegistry (GetScanPolicyByRegistryRequest) returns (ScanPolicy)

GetScanPolicyByRegistryRequestGetScanPolicyByRegistryRequest

{
  "registry_id": "string"
}

Field

Description

registry_id

string

Required field. ID of the registry with scan policy.

ScanPolicyScanPolicy

{
  "id": "string",
  "registry_id": "string",
  "name": "string",
  "description": "string",
  "rules": {
    "push_rule": {
      "repository_prefixes": [
        "string"
      ],
      "disabled": "bool"
    },
    "schedule_rules": [
      {
        "repository_prefixes": [
          "string"
        ],
        "rescan_period": "google.protobuf.Duration",
        "disabled": "bool"
      }
    ]
  },
  "created_at": "google.protobuf.Timestamp",
  "disabled": "bool"
}

Field

Description

id

string

Output only. ID of the scan policy.

registry_id

string

ID of the registry that the scan policy belongs to.
Required. The maximum string length in characters is 50.

name

string

Name of the scan policy.

description

string

Description of the scan policy.
The maximum string length in characters is 256.

rules

ScanRules

The rules of scan policy.

created_at

google.protobuf.Timestamp

Output only. Creation timestamp.

disabled

bool

Turns off scan policy.

ScanRulesScanRules

Field

Description

push_rule

PushRule

Description of on-push scan rule.

schedule_rules[]

ScheduledRule

Description of time based rescan rule.

PushRulePushRule

Field

Description

repository_prefixes[]

string

List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry

disabled

bool

Turns off scan rule.

ScheduledRuleScheduledRule

Field

Description

repository_prefixes[]

string

List of repositories that are scanned with rule. Child repositories are included into parent node. "*" - means all repositories in registry

rescan_period

google.protobuf.Duration

Required field. Period of time since last scan to trigger automatic rescan.

disabled

bool

Turns off scan rule.

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

Предыдущая
Get
Следующая
Create
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»