Identity and Access Management API, gRPC: ApiKeyService.Get
Статья создана
Обновлена 17 октября 2024 г.
Returns the specified API key.
To get the list of available API keys, make a List request.
gRPC request
rpc Get (GetApiKeyRequest) returns (ApiKey)
GetApiKeyRequest
{
"apiKeyId": "string"
}
Field |
Description |
apiKeyId |
string Required field. ID of the API key to return. |
ApiKey
{
"id": "string",
"serviceAccountId": "string",
"createdAt": "google.protobuf.Timestamp",
"description": "string",
"lastUsedAt": "google.protobuf.Timestamp",
"scope": "string",
"expiresAt": "google.protobuf.Timestamp"
}
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. |