Provides implementation for the Vault Renew/Revoke Leases APIs
Extends
- Vaulted
Methods
-
<inner> renewLease()
-
Renew the lease (extend) on a secret
Parameters:
Name Type Argument Description options.idstring unique identifier for the lease
options.body.incrementstring <optional>
requested amount of time in seconds to extend the lease.
options.tokenstring <optional>
the authentication token
Returns:
Promise which is resolved to the renewed secret.
- Type
- Promise
-
<inner> revokeLease()
-
Revoke the lease on a secret immediately.
Parameters:
Name Type Argument Description options.idstring unique identifier for the lease
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> revokeLeasePrefix()
-
Revoke the lease on all secrets under the specified prefix immediately.
Parameters:
Name Type Argument Description options.idstring secret path prefix
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise