Identity and Access Management API, REST: ApiKey.List
Retrieves the list of API keys for the specified service account.
HTTP request
GET https://iam.api.cloud.yandex.net/iam/v1/apiKeys
Query parameters
Field |
Description |
serviceAccountId |
string ID of the service account to list API keys for. |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, set |
Response
HTTP Code: 200 - OK
{
"apiKeys": [
{
"id": "string",
"serviceAccountId": "string",
"createdAt": "string",
"description": "string",
"lastUsedAt": "string",
"scope": "string",
"scopes": [
"string"
],
"expiresAt": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
apiKeys[] |
List of API keys. |
nextPageToken |
string This token allows you to get the next page of results for list requests. If the number of results |
ApiKey
An ApiKey resource. For more information, see Api-Key.
Field |
Description |
id |
string ID of the API Key. |
serviceAccountId |
string ID of the service account that the API 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 API key. 0-256 characters long. |
lastUsedAt |
string (date-time) Timestamp for the last authentication using this API key. String in RFC3339 To work with values in this field, use the APIs described in the |
scope |
string Scope of the API key. 0-256 characters long. |
scopes[] |
string Scopes of the API key. 0-256 characters long. |
expiresAt |
string (date-time) API key expiration timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |