Identity and Access Management API, REST: IamToken.createForServiceAccount
Written by
Create 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. The maximum string length in characters is 50. |
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. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |