Identity and Access Management API, gRPC: IamTokenService
Статья создана
Обновлена 13 декабря 2022 г.
A set of methods for managing IAM tokens.
Call | Description |
---|---|
Create | Creates an IAM token for the specified identity. |
CreateForServiceAccount | Create iam token for service account. |
Calls IamTokenService
Create
Creates an IAM token for the specified identity.
rpc Create (CreateIamTokenRequest) returns (CreateIamTokenResponse)
CreateIamTokenRequest
Field | Description |
---|---|
identity | oneof: yandex_passport_oauth_token or jwt |
yandex_passport_oauth_token | string OAuth token for a Yandex account. For more information, see OAuth token. |
jwt | string JSON Web Token (JWT) for a service account. For more information, see Get IAM token for a service account. |
CreateIamTokenResponse
Field | Description |
---|---|
iam_token | string IAM token for the specified identity. You should pass the token in the Authorization header for any further API requests. For example, Authorization: Bearer iam_token``. |
expires_at | google.protobuf.Timestamp IAM token expiration time. |
CreateForServiceAccount
Create iam token for service account.
rpc CreateForServiceAccount (CreateIamTokenForServiceAccountRequest) returns (CreateIamTokenResponse)
CreateIamTokenForServiceAccountRequest
Field | Description |
---|---|
service_account_id | string Required. The maximum string length in characters is 50. |
CreateIamTokenResponse
Field | Description |
---|---|
iam_token | string IAM token for the specified identity. You should pass the token in the Authorization header for any further API requests. For example, Authorization: Bearer iam_token``. |
expires_at | google.protobuf.Timestamp IAM token expiration time. |