Access Key, REST: AccessKey.Create
Creates an access key for the specified service account.
HTTP request
POST https://iam.api.cloud.yandex.net/iam/aws-compatibility/v1/accessKeys
Body parameters
{
"serviceAccountId": "string",
"description": "string"
}
Field |
Description |
serviceAccountId |
string ID of the service account to create an access key for. |
description |
string Description of the access key. |
Response
HTTP Code: 200 - OK
{
"accessKey": {
"id": "string",
"serviceAccountId": "string",
"createdAt": "string",
"description": "string",
"keyId": "string",
"lastUsedAt": "string"
},
"secret": "string"
}
Field |
Description |
accessKey |
AccessKey resource. |
secret |
string Secret access key. |
AccessKey
An access key.
For more information, see AWS-compatible access keys.
Field |
Description |
id |
string ID of the AccessKey resource. |
serviceAccountId |
string ID of the service account that the access key belongs to. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
description |
string Description of the access key. 0-256 characters long. |
keyId |
string ID of the access key. |
lastUsedAt |
string (date-time) Timestamp for the last authentication using this Access key. String in RFC3339 To work with values in this field, use the APIs described in the |