status
The status
command prints the current state of Vault including whether it is
sealed and if HA mode is enabled. This command prints regardless of whether the
Vault is sealed.
The exit code reflects the seal status:
- 0 - unsealed
- 1 - error
- 2 - sealed
Examples
Check the status:
$ vault status Sealed: falseKey Shares: 5Key Threshold: 3Unseal Progress: 0Unseal Nonce:Version: x.y.zBuild Date: 2022-05-03T08:34:11ZCluster Name: vault-cluster-49ffd45fCluster ID: d2dad792-fb99-1c8d-452e-528d073ba205 High-Availability Enabled: false
Usage
The following flags are available in addition to the standard set of flags included on all commands.
Output options
-format
(string: "table")
- Print the output in the given format. Valid formats are "table", "json", or "yaml". This can also be specified via theVAULT_FORMAT
environment variable.