Access Key, REST: TemporaryAccessKey.CreateEphemeral
Creates an ephemeral access key for the specified subject.
HTTP request
POST https://iam.api.cloud.yandex.net/iam/aws-compatibility/v1/ephemeralAccessKeys
Body 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. 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 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, |
Response
HTTP Code: 200 - OK
{
"accessKeyId": "string",
"secret": "string",
"sessionToken": "string",
"expiresAt": "string"
}
|
Field |
Description |
|
accessKeyId |
string ID of the access key. |
|
secret |
string Secret access key. |
|
sessionToken |
string Session token. |
|
expiresAt |
string (date-time) Expiration time. String in RFC3339 To work with values in this field, use the APIs described in the |