List
List the vaults of the controller.
The list shows each vault of controller.secrets.vaults. A vault that does not answer is a backend that the controller cannot reach now.
osapi client secret vault list
Examples
osapi client secret vault list
osapi client secret vault list --json
Result
The command prints:
$ osapi client secret vault list Vaults (2): NAME TYPE TARGETS ANSWERS default nats yes prod nats group:prod yes trace 26e448c9dbe1c4a8d216a98c675079c9
With --json, the API's response:
{
"items": [
{
"name": "default",
"type": "nats",
"targets": [],
"answers": true
},
{
"name": "prod",
"type": "nats",
"targets": ["group:prod"],
"answers": true
}
],
"total_items": 2
}
Permission
It needs the secret:read permission. osapi controller role get --name <role>
shows what a role grants.
Global flags
| Flag | Description | Default |
|---|---|---|
-d, --debug | Enable or disable debug mode | |
-j, --json | Enable JSON output | |
-f, --osapi-file | Path to config file; without one at the default path, osapi runs on the defaults | /etc/osapi/osapi.yaml |
--url | Base URL the CLI client connects to (controller.client.url) | https://localhost:8080 |
Output tells how the result is printed, and what --json
gives.