Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
© 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
    • API authentication
      • Overview
        • Overview
          • Overview
          • CreateEphemeral
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • gRPC request
  • CreateEphemeralAccessKeyRequest
  • CreateEphemeralAccessKeyResponse
  1. API reference
  2. gRPC
  3. Access Key
  4. TemporaryAccessKey
  5. CreateEphemeral

Access Key, gRPC: TemporaryAccessKeyService.CreateEphemeral

Written by
Yandex Cloud
Updated at December 15, 2025
  • gRPC request
  • CreateEphemeralAccessKeyRequest
  • CreateEphemeralAccessKeyResponse

Creates an ephemeral access key for the specified subject.

gRPC requestgRPC request

rpc CreateEphemeral (CreateEphemeralAccessKeyRequest) returns (CreateEphemeralAccessKeyResponse)

CreateEphemeralAccessKeyRequestCreateEphemeralAccessKeyRequest

{
  "subject_id": "string",
  "session_name": "string",
  "policy": "string",
  "duration": "google.protobuf.Duration"
}

Field

Description

subject_id

string

The subject identifier for whom the ephemeral access key will be created.
If not specified, it defaults to the subject that made the request.

The maximum string length in characters is 50.

session_name

string

Required field. Use the session name to uniquely identify a session when the same SA is impersonated by different principals or for different reasons
Pattern: [\w+=,.@-]*

The string length in characters must be 1-64.

policy

string

AWS-compatible policy in JSON format that you want to use as an inline session policy.

The maximum string length in characters is 2048.

duration

google.protobuf.Duration

Duration, which specifies the duration of the ephemeral access key,
but duration won't be longer than the lifetime of the authentication token that made the request

CreateEphemeralAccessKeyResponseCreateEphemeralAccessKeyResponse

{
  "access_key_id": "string",
  "secret": "string",
  "session_token": "string",
  "expires_at": "google.protobuf.Timestamp"
}

Field

Description

access_key_id

string

ID of the access key.
The key is AWS compatible.

secret

string

Secret access key.
The key is AWS compatible.

session_token

string

Session token.
The token is AWS compatible. Should be attached to any call made by provided credentials.

expires_at

google.protobuf.Timestamp

Expiration time.
The date on which the current credentials expire.

Was the article helpful?

Previous
Overview
Next
Overview
© 2025 Direct Cursus Technology L.L.C.