Identity and Access Management API, gRPC: ApiKeyService.List
Retrieves the list of API keys for the specified service account.
gRPC request
rpc List (ListApiKeysRequest) returns (ListApiKeysResponse)
ListApiKeysRequest
{
"serviceAccountId": "string",
"pageSize": "int64",
"pageToken": "string"
}
Field |
Description |
serviceAccountId |
string ID of the service account to list API keys for. |
pageSize |
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 |
ListApiKeysResponse
{
"apiKeys": [
{
"id": "string",
"serviceAccountId": "string",
"createdAt": "google.protobuf.Timestamp",
"description": "string",
"lastUsedAt": "google.protobuf.Timestamp",
"scope": "string",
"expiresAt": "google.protobuf.Timestamp"
}
],
"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 |
Creation timestamp. |
description |
string Description of the API key. 0-256 characters long. |
lastUsedAt |
Timestamp for the last authentication using this API key. |
scope |
string Scope of the API key. 0-256 characters long. |
expiresAt |
API key expiration timestamp. |