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:

  • HTTP request
  • Body parameters
  • Response
  1. API reference
  2. REST
  3. Access Key
  4. TemporaryAccessKey
  5. CreateEphemeral

Access Key, REST: TemporaryAccessKey.CreateEphemeral

Written by
Yandex Cloud
Updated at December 15, 2025
  • HTTP request
  • Body parameters
  • Response

Creates an ephemeral access key for the specified subject.

HTTP requestHTTP request

POST https://iam.api.cloud.yandex.net/iam/aws-compatibility/v1/ephemeralAccessKeys

Body parametersBody parameters

{
  "subjectId": "string",
  "sessionName": "string",
  "policy": "string",
  "duration": "string"
}

Field

Description

subjectId

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.

sessionName

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

string (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

ResponseResponse

HTTP Code: 200 - OK

{
  "accessKeyId": "string",
  "secret": "string",
  "sessionToken": "string",
  "expiresAt": "string"
}

Field

Description

accessKeyId

string

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

secret

string

Secret access key.
The key is AWS compatible.

sessionToken

string

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

expiresAt

string (date-time)

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

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

Was the article helpful?

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