Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Container Registry
  • Getting started
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Scan
        • Get
        • GetLast
        • List
        • ListVulnerabilities
  • Monitoring metrics
  • Audit Trails events
  • Troubleshooting
  • FAQ

In this article:

  • gRPC request
  • GetLastScanResultRequest
  • ScanResult
  • VulnerabilityStats
  1. API reference
  2. gRPC
  3. Scanner
  4. GetLast

Container Registry API, gRPC: ScannerService.GetLast

Written by
Yandex Cloud
Updated at November 26, 2024
  • gRPC request
  • GetLastScanResultRequest
  • ScanResult
  • VulnerabilityStats

Returns the last finished ScanResult for the specified Image.

gRPC requestgRPC request

rpc GetLast (GetLastScanResultRequest) returns (ScanResult)

GetLastScanResultRequestGetLastScanResultRequest

{
  "image_id": "string"
}

Field

Description

image_id

string

ID of the Image to get last finished ScanResult.

ScanResultScanResult

{
  "id": "string",
  "image_id": "string",
  "scanned_at": "google.protobuf.Timestamp",
  "status": "Status",
  "vulnerabilities": {
    "critical": "int64",
    "high": "int64",
    "medium": "int64",
    "low": "int64",
    "negligible": "int64",
    "undefined": "int64"
  }
}

A ScanResult resource.

Field

Description

id

string

Output only. ID of the ScanResult.

image_id

string

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

scanned_at

google.protobuf.Timestamp

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

status

enum Status

Output only. The status of the ScanResult.

  • STATUS_UNSPECIFIED
  • RUNNING: Image scan is in progress.
  • READY: Image has been scanned and result is ready.
  • ERROR: Image scan is failed.

vulnerabilities

VulnerabilityStats

Output only. Summary information about vulnerabilities found.

VulnerabilityStatsVulnerabilityStats

A VulnerabilityStats resource.

Field

Description

critical

int64

Count of CRITICAL vulnerabilities.

high

int64

Count of HIGH vulnerabilities.

medium

int64

Count of MEDIUM vulnerabilities.

low

int64

Count of LOW vulnerabilities.

negligible

int64

Count of NEGLIGIBLE vulnerabilities.

undefined

int64

Count of other vulnerabilities.

Was the article helpful?

Previous
Get
Next
List
Yandex project
© 2025 Yandex.Cloud LLC