vhsm lease
Learn to use vhsm lease command to interact with the leases attached to the secrets.
The vhsm lease
command groups subcommands for interacting with leases attached to secrets. For leases attached to tokens, use the vhsm token
subcommand.
Ensure that you have the id of the lease that you would like to interact with.
Usage
Subcommands
Retrieve lease information by lease ID.
Renew the lease of a secret.
Revoke leases and secrets.
vhsm lease lookup
vhsm lease lookup
The lookup
command retrieves information on the lease of a secret.
Example
Output
vhsm lease renew
vhsm lease renew
Renews the lease on a secret, extending its usage before revocation by vHSM. Renewing a lease does not change the contents of the secret.
Example
Output
Options
-increment <duration>
Request a specific increment in seconds. vHSM may not honor this request.
vhsm lease revoke
vhsm lease revoke
Revokes the lease on a secret, invalidating the underlying secret.
Example 1: Revoke a specific lease
Output
Example 2: Revoke leases with a specific prefix
Output
Options
-force
(-f
)
Delete the lease from vHSM even if secret engine revocation fails. Requires -prefix
. Default: false
.
-prefix
Treat the ID as a prefix instead of an exact lease ID, allowing multiple leases to be revoked. Default: false
.
-sync
Make the operation synchronous instead of queuing revocations in the background. Default: false
.
Last updated
Was this helpful?