Identity and Access Management API, REST: AccessKey.get
Returns the specified access key.
To get the list of available access keys, make a list request.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/aws-compatibility/v1/accessKeys/{accessKeyId}
Path parameters
Parameter | Description |
---|---|
accessKeyId | Required. ID of the AccessKey resource to return. To get the access key ID, use a list request. The maximum string length in characters is 50. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"serviceAccountId": "string",
"createdAt": "string",
"description": "string",
"keyId": "string",
"lastUsedAt": "string"
}
An access key.
For more information, see AWS-compatible access keys.
Field | Description |
---|---|
id | string ID of the AccessKey resource. It is used to manage secret credentials: an access key ID and a secret access key. |
serviceAccountId | string ID of the service account that the access key belongs to. |
createdAt | string (date-time) Creation timestamp. 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). |
description | string Description of the access key. 0-256 characters long. |
keyId | string ID of the access key. The key is AWS compatible. |
lastUsedAt | string (date-time) Timestamp for the last authentication using this Access key. 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). |