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
{
"service_account_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
service_account_id |
string ID of the service account to list API keys for. |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, set |
ListApiKeysResponse
{
"api_keys": [
{
"id": "string",
"service_account_id": "string",
"created_at": "google.protobuf.Timestamp",
"description": "string",
"last_used_at": "google.protobuf.Timestamp",
"scope": "string",
"scopes": [
"string"
],
"expires_at": "google.protobuf.Timestamp"
}
],
"next_page_token": "string"
}
Field |
Description |
api_keys[] |
List of API keys. |
next_page_token |
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. |
service_account_id |
string ID of the service account that the API key belongs to. |
created_at |
Creation timestamp. |
description |
string Description of the API key. 0-256 characters long. |
last_used_at |
Timestamp for the last authentication using this API key. |
scope |
string Scope of the API key. 0-256 characters long. |
scopes[] |
string Scopes of the API key. 0-256 characters long. |
expires_at |
API key expiration timestamp. |