Yandex Cloud
Поиск
Связаться с намиПопробовать бесплатно
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Калькулятор цен
    • Тарифы
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Identity and Access Management
  • Безопасное использование Yandex Cloud
  • Управление доступом
  • Правила тарификации
  • Справочник ролей
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
          • Overview
          • CreateEphemeral
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • История изменений
  • Обучающие курсы

В этой статье:

  • HTTP request
  • Body parameters
  • Response
  1. Справочник API
  2. REST (англ.)
  3. Access Key
  4. TemporaryAccessKey
  5. CreateEphemeral

Access Key, REST: TemporaryAccessKey.CreateEphemeral

Статья создана
Yandex Cloud
Обновлена 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).

Была ли статья полезна?

Предыдущая
Overview
Следующая
Overview
Проект Яндекса
© 2025 ООО «Яндекс.Облако»