Method 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.Passport 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. |