Identity and Access Management API, REST: IamToken.Create
Create 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 OAuth token for a Yandex account. Includes only one of the fields |
jwt |
string JSON Web Token (JWT) for a service account. Includes only one of the fields |
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 To work with values in this field, use the APIs described in the |