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 Identity and Access Management
  • Secure use of Yandex Cloud
  • Access management
  • Pricing policy
  • Role reference
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • List
        • Get
        • Create
        • Update
        • Delete
        • ListOperations
        • ListScopes
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • GetApiKeyRequest
  • ApiKey
  1. API reference
  2. gRPC
  3. ApiKey
  4. Get

Identity and Access Management API, gRPC: ApiKeyService.Get

Written by
Yandex Cloud
Updated at March 26, 2025
  • gRPC request
  • GetApiKeyRequest
  • ApiKey

Returns the specified API key.

To get the list of available API keys, make a List request.

gRPC requestgRPC request

rpc Get (GetApiKeyRequest) returns (ApiKey)

GetApiKeyRequestGetApiKeyRequest

{
  "api_key_id": "string"
}

Field

Description

api_key_id

string

Required field. ID of the API key to return.
To get the API key ID, use a ApiKeyService.List request.

ApiKeyApiKey

{
  "id": "string",
  "service_account_id": "string",
  "created_at": "google.protobuf.Timestamp",
  "description": "string",
  "last_used_at": "google.protobuf.Timestamp",
  "scope": "string",
  "scopes": [
    "string"
  ],
  "expires_at": "google.protobuf.Timestamp"
}

An ApiKey resource. For more information, see Api-Key.

Field

Description

id

string

ID of the API Key.

service_account_id

string

ID of the service account that the API key belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp.

description

string

Description of the API key. 0-256 characters long.

last_used_at

google.protobuf.Timestamp

Timestamp for the last authentication using this API key.

scopes[]

string

Scopes of the API key. 0-256 characters long.

expires_at

google.protobuf.Timestamp

API key expiration timestamp.

Was the article helpful?

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