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
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Key Management Service
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Create
        • Get
        • List
        • ListVersions
        • Update
        • Delete
        • SetPrimaryVersion
        • ScheduleVersionDestruction
        • CancelVersionDestruction
        • Rotate
        • ListOperations
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
  • Monitoring metrics
  • Audit Trails events
  • FAQ

In this article:

  • gRPC request
  • ListSymmetricKeyVersionsRequest
  • ListSymmetricKeyVersionsResponse
  • SymmetricKeyVersion
  1. API reference
  2. gRPC
  3. SymmetricKey
  4. ListVersions

Key Management Service API, gRPC: SymmetricKeyService.ListVersions

Written by
Yandex Cloud
Updated at November 26, 2024
  • gRPC request
  • ListSymmetricKeyVersionsRequest
  • ListSymmetricKeyVersionsResponse
  • SymmetricKeyVersion

Returns the list of versions of the specified symmetric KMS key.

gRPC requestgRPC request

rpc ListVersions (ListSymmetricKeyVersionsRequest) returns (ListSymmetricKeyVersionsResponse)

ListSymmetricKeyVersionsRequestListSymmetricKeyVersionsRequest

{
  "key_id": "string",
  "page_size": "int64",
  "page_token": "string"
}

Field

Description

key_id

string

Required field. ID of the symmetric KMS key to list versions for.

page_size

int64

The maximum number of results per page to return. If the number of available
results is larger than page_size, the service returns a ListSymmetricKeyVersionsResponse.next_page_token
that can be used to get the next page of results in subsequent list requests.
Default value: 100.

page_token

string

Page token. To get the next page of results, set page_token to the
ListSymmetricKeyVersionsResponse.next_page_token returned by a previous list request.

ListSymmetricKeyVersionsResponseListSymmetricKeyVersionsResponse

{
  "key_versions": [
    {
      "id": "string",
      "key_id": "string",
      "status": "Status",
      "algorithm": "SymmetricAlgorithm",
      "created_at": "google.protobuf.Timestamp",
      "primary": "bool",
      "destroy_at": "google.protobuf.Timestamp",
      "hosted_by_hsm": "bool"
    }
  ],
  "next_page_token": "string"
}

Field

Description

key_versions[]

SymmetricKeyVersion

List of versions for the specified symmetric KMS key.

next_page_token

string

This token allows you to get the next page of results for list requests. If the number
of results is greater than the specified ListSymmetricKeyVersionsRequest.page_size, use
the next_page_token as the value for the ListSymmetricKeyVersionsRequest.page_token query parameter
in the next list request. Each subsequent list request will have its own
next_page_token to continue paging through the results.

SymmetricKeyVersionSymmetricKeyVersion

Symmetric KMS key version: metadata about actual cryptographic data.

Field

Description

id

string

ID of the key version.

key_id

string

ID of the symmetric KMS key that the version belongs to.

status

enum Status

Status of the key version.

  • STATUS_UNSPECIFIED
  • ACTIVE: The version is active and can be used for encryption and decryption.
  • SCHEDULED_FOR_DESTRUCTION: The version is scheduled for destruction, the time when it will be destroyed
    is specified in the SymmetricKeyVersion.destroy_at field.
  • DESTROYED: The version is destroyed and cannot be recovered.

algorithm

enum SymmetricAlgorithm

Encryption algorithm that should be used when using the key version to encrypt plaintext.

  • SYMMETRIC_ALGORITHM_UNSPECIFIED
  • AES_128: AES algorithm with 128-bit keys.
  • AES_192: AES algorithm with 192-bit keys.
  • AES_256: AES algorithm with 256-bit keys.
  • AES_256_HSM: AES algorithm with 256-bit keys hosted by HSM

created_at

google.protobuf.Timestamp

Time when the key version was created.

primary

bool

Indication of a primary version, that is to be used by default for all cryptographic
operations that don't have a key version explicitly specified.

destroy_at

google.protobuf.Timestamp

Time when the key version is going to be destroyed. Empty unless the status
is SCHEDULED_FOR_DESTRUCTION.

hosted_by_hsm

bool

Indication of the version that is hosted by HSM.

Was the article helpful?

Previous
List
Next
Update
© 2025 Direct Cursus Technology L.L.C.