Identity and Access Management API, REST: IamToken.create
Creates an IAM token for the specified identity.
HTTP request
POST https://iam.api.cloud.yandex.net/iam/v1/tokens
Body parameters
{
// includes only one of the fields `yandexPassportOauthToken`, `jwt`
"yandexPassportOauthToken": "string",
"jwt": "string",
// end of the list of possible fields
}
Field | Description |
---|---|
yandexPassportOauthToken | string includes only one of the fields yandexPassportOauthToken , jwt OAuth token for a Yandex account. For more information, see OAuth token. |
jwt | string includes only one of the fields yandexPassportOauthToken , jwt JSON Web Token (JWT) for a service account. For more information, see Get IAM token for a service account. |
Response
HTTP Code: 200 - OK
{
"iamToken": "string",
"expiresAt": "string"
}
Field | Description |
---|---|
iamToken | string IAM token for the specified identity. You should pass the token in the |
expiresAt | string (date-time) IAM token expiration time. String in RFC3339 text format. The range of possible values is from 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). |