Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Registry
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • API authentication
      • Overview
        • Overview
        • Get
        • GetByRegistry
        • Create
        • Update
        • Delete
  • Audit Trails events

In this article:

  • gRPC request
  • GetScanPolicyByRegistryRequest
  • ScanPolicy
  • ScanPolicyOptions
  • ScanRules
  • PushRule
  • ScheduledRule
  1. API reference
  2. gRPC
  3. ScanPolicy
  4. GetByRegistry

Yandex Cloud Registry API, gRPC: ScanPolicyService.GetByRegistry

Written by
Yandex Cloud
Updated at June 3, 2026
  • gRPC request
  • GetScanPolicyByRegistryRequest
  • ScanPolicy
  • ScanPolicyOptions
  • 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.

The maximum string length in characters is 50.

ScanPolicyScanPolicy

{
  "id": "string",
  "registry_id": "string",
  "name": "string",
  "description": "string",
  "scan_policy_options": {
    "scan_lang_packages": "bool"
  },
  "rules": {
    "push_rule": {
      "paths": [
        "string"
      ],
      "disabled": "bool"
    },
    "schedule_rules": [
      {
        "amount": "int64",
        "interval_unit": "IntervalUnit",
        "paths": [
          "string"
        ],
        "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.

scan_policy_options

ScanPolicyOptions

Scan policy options.

rules

ScanRules

The rules of scan policy.

created_at

google.protobuf.Timestamp

Output only. Creation timestamp.

disabled

bool

Turns off scan policy.

ScanPolicyOptionsScanPolicyOptions

Field

Description

scan_lang_packages

bool

Flag indicating whether language packages should be scanned.

ScanRulesScanRules

Field

Description

push_rule

PushRule

Description of on-push scan rule.

schedule_rules[]

ScheduledRule

Description of time based rescan rule.

PushRulePushRule

Field

Description

paths[]

string

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

Each value must match the regular expression \*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*. The number of elements must be greater than 0.

disabled

bool

Turns off scan rule.

ScheduledRuleScheduledRule

Field

Description

amount

int64

Amount of time units for the scan interval.

Value must be greater than 0.

interval_unit

enum IntervalUnit

Unit for the scan interval.

  • DAYS: Time unit is days.

paths[]

string

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

Each value must match the regular expression \*|[a-z0-9]+(?:[._-][a-z0-9]+)*(/([a-z0-9]+(?:[._-][a-z0-9]+)*))*. The number of elements must be in the range 1-1000.

disabled

bool

Turns off scan rule.

Was the article helpful?

Previous
Get
Next
Create
© 2026 Direct Cursus Technology L.L.C.