Identity and Access Management API, REST: IamToken.CreateForServiceAccount
Статья создана
Обновлена 17 октября 2024 г.
Create an IAM token for service account.
HTTP request
POST https://iam.api.cloud.yandex.net/iam/v1/tokens:createForServiceAccount
Body parameters
{
"serviceAccountId": "string"
}
Field |
Description |
serviceAccountId |
string Required field. |
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 |