Identity and Access Management API, gRPC: IamTokenService.Create
Статья создана
Обновлена 26 ноября 2024 г.
Create an IAM token for the specified identity.
gRPC request
rpc Create (CreateIamTokenRequest) returns (CreateIamTokenResponse)
CreateIamTokenRequest
{
// Includes only one of the fields `yandex_passport_oauth_token`, `jwt`
"yandex_passport_oauth_token": "string",
"jwt": "string"
// end of the list of possible fields
}
Field |
Description |
yandex_passport_oauth_token |
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 |
CreateIamTokenResponse
{
"iam_token": "string",
"expires_at": "google.protobuf.Timestamp"
}
Field |
Description |
iam_token |
string IAM token for the specified identity. You should pass the token in the |
expires_at |
IAM token expiration time. |