In the Vault Web UI, under "Access", it shows the ability to look up leases by "Lease ID": If you know the id of a lease, enter it above to lookup details of the lease.
How do I get "the id of a lease" in the first place?
In the Vault CLI, it looks like my only options for leases are renew
and revoke
:
~ | 👾 vault lease lookup
Usage: vault lease <subcommand> [options] [args]
This command groups subcommands for interacting with leases. Users can revoke
or renew leases.
Renew a lease:
$ vault lease renew database/creds/readonly/2f6a614c...
Revoke a lease:
$ vault lease revoke database/creds/readonly/2f6a614c...
Subcommands:
renew Renews the lease of a secret
revoke Revokes leases and secrets
If I just need to get a lease id, how would I do that from the CLI?