rpk ai secret list
List secrets. --filter, --tag and --name-contains are ANDed into one
AIP-160 filter. The command prints one page, of the server’s default size
unless --page-size is set. When more secrets remain, stderr names the token
that reads the next page, to pass as --page-token. Because the server
matches --name-contains against the full secrets/ID name, that page is then
narrowed to the ids containing the substring.
Fields --filter can test: name (the full secrets/ID resource name),
created_by, updated_by, created_at, updated_at, tags.KEY ("=" or ":" for a
substring) and tags:KEY (has key).
| This command was introduced in ai version 0.2.92. |
Examples
This section provides examples of how to use rpk ai secret list.
rpk ai secret list --tag team=ai
rpk ai secret list --filter 'created_by = "me@example.com" OR tags:owner'
Flags
| Value | Type | Description |
|---|---|---|
|
string |
AIP-160 filter expression, ANDed with the other filter flags. |
|
string |
only secrets whose id contains this substring ( |
|
int32 |
Maximum number of secrets in the page (0: the server’s default). (New in 0.2.122) |
|
string |
Read the page after the one that printed this token. (New in 0.2.122) |
|
stringArray |
only secrets carrying this tag, KEY=VALUE (repeatable; all must match). |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |