Identity and Access Management API, gRPC: IamTokenService.Create
Статья создана
Обновлена 17 октября 2024 г.
Create an IAM token for the specified identity.
gRPC request
rpc Create (CreateIamTokenRequest) returns (CreateIamTokenResponse)
CreateIamTokenRequest
{
// 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 |
CreateIamTokenResponse
{
"iamToken": "string",
"expiresAt": "google.protobuf.Timestamp"
}
Field |
Description |
iamToken |
string IAM token for the specified identity. You should pass the token in the |
expiresAt |
IAM token expiration time. |