Key Management Service API, gRPC: AsymmetricEncryptionKeyService.List
Returns the list of asymmetric KMS keys in the specified folder.
gRPC request
rpc List (ListAsymmetricEncryptionKeysRequest) returns (ListAsymmetricEncryptionKeysResponse)
ListAsymmetricEncryptionKeysRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
folder_id |
string Required field. ID of the folder to list asymmetric KMS keys in. |
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 |
ListAsymmetricEncryptionKeysResponse
{
"keys": [
{
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"status": "Status",
"encryption_algorithm": "AsymmetricEncryptionAlgorithm",
"deletion_protection": "bool"
}
],
"next_page_token": "string"
}
Field |
Description |
keys[] |
List of asymmetric KMS keys in the specified folder. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number |
AsymmetricEncryptionKey
An asymmetric KMS key that may contain several versions of the cryptographic material.
Field |
Description |
id |
string ID of the key. |
folder_id |
string ID of the folder that the key belongs to. |
created_at |
Time when the key was created. |
name |
string Name of the key. |
description |
string Description of the key. |
labels |
object (map<string, string>) Custom labels for the key as |
status |
enum Status Current status of the key.
|
encryption_algorithm |
enum AsymmetricEncryptionAlgorithm Asymmetric Encryption Algorithm ID.
|
deletion_protection |
bool Flag that inhibits deletion of the key |