For more information, examples, and usage about a subcommand, click on the name of the subcommand in the sidebar.
lease lookup
The lease lookup command retrieves information on the lease of a secret.
Every secret in Vault has a lease associated with it. Users can look up information on the lease by referencing the lease ID.
Examples
Lookup a lease:
Usage
There are no flags beyond the standard set of flags included on all commands.
lease renew
The lease renew command renews the lease on a secret, extending the time that it can be used before it is revoked by Vault.
Every secret in Vault has a lease associated with it. If the owner of the secret wants to use it longer than the lease, then it must be renewed. Renewing the lease does not change the contents of the secret.
Examples
Renew a lease:
Usage
The following flags are available in addition to the standard set of flags included on all commands.
-increment(duration: "") - Request a specific increment in seconds. Vault is not required to honor this request.
lease revoke
The lease revoke command revokes the lease on a secret, invalidating the underlying secret.
Examples
Revoke a lease:
Revoke a lease which starts with a prefix:
Usage
The following flags are available in addition to the standard set of flags included on all commands.
-force(bool: false) - Delete the lease from Vault even if the secret engine revocation fails. This is meant for recovery situations where the secret in the target secrets engine was manually removed. If this flag is specified, -prefix is also required. This is aliased as "-f". The default is false.
-prefix(bool: false) - Treat the ID as a prefix instead of an exact lease ID. This can revoke multiple leases simultaneously. The default is false.
-sync(bool: false) - Make the operation synchronous instead of queuing the revocations to be done in the background.
Usage: vault lease <subcommand> [options] [args]
# ...
Subcommands:
lookup Lookup lease information by lease id
renew Renews the lease of a secret
revoke Revokes leases and secrets