otdfctl policy kas-registry key list
list - List Keys
Synopsis
otdfctl policy kas-registry key list [flags]
Description
This command lists keys registered within a specified Key Access Server (KAS). You must specify the KAS using its ID, URI, or Name.
The list can be filtered by key algorithm. Pagination is supported using limit
and offset
flags to manage the number of results returned.
Examples
List the first 10 keys from a KAS specified by its URI:
otdfctl policy kas-registry key list --kas "https://kas.example.com/kas" --limit 10 --offset 0
List keys from a KAS named "Primary KAS", filtering for keys using the "RSA:2048" algorithm, and output in JSON format:
otdfctl policy kas-registry key list --kas "Primary KAS" --alg "RSA:2048" --limit 20 --offset 0 --json
List the next 5 keys (skipping the first 5) from a KAS identified by its ID:
otdfctl policy kas-registry key list --kas "kas-id-12345" --limit 5 --offset 5
Options
-l
,--limit <limit>
- Maximum number of keys to return (required:
true
)
-o
,--offset <offset>
- Number of keys to skip before starting to return results (required:
true
)
-a
,--algorithm <algorithm>
- Key Algorithm to filter for (required:
false
)
-
--kas <kas>
- Specify the Key Access Server (KAS) where the key (identified by `--key`) is registered. The KAS can be identified by its ID, URI, or Name. (required:
true
)
Aliases
l