Provides implementation for the Vault Secret Backend Mounts APIs
Extends
- Vaulted
Methods
-
<inner> createMount()
-
Creates the specified mount in the vault and sets internal property accordingly
Parameters:
Name Type Argument Description options.idstring unique identifier for the secret backend mount
options.body.typestring the type of secret backend ('consul', 'pki')
options.body.descriptionstring <optional>
a description of the secret backend for operators.
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> deleteMount()
-
Deletes the specified mount from the vault and sets internal property accordingly
Parameters:
Name Type Argument Description options.idstring unique identifier for the secret backend mount
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> getMounts()
-
Gets the list of mounts for the vault and sets internal property accordingly
Parameters:
Name Type Argument Description options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> getMountTune()
-
Gets the current TTL config for a mount
Parameters:
Name Type Argument Description options.idstring unique identifier for the secret backend mount
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> mountConsul()
-
Convenience method to enable the
consulsecret backend for use with the vault.Parameters:
Name Type Argument Default Description options.idstring <optional>
consul unique identifier for the secret backend mount
options.body.descriptionstring <optional>
a description of the secret backend for operators.
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> mountPki()
-
Convenience method to enable the
pkisecret backend for use with the vault.Parameters:
Name Type Argument Default Description options.idstring <optional>
pki unique identifier for the secret backend mount
options.body.descriptionstring <optional>
a description of the secret backend for operators.
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> mountTransit()
-
Convenience method to enable the
transitsecret backend for use with the vault.Parameters:
Name Type Argument Default Description options.idstring <optional>
transit unique identifier for the secret backend mount
options.body.descriptionstring <optional>
a description of the secret backend for operators.
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> reMount()
-
Renames the specified mount to a new name in the vault and sets internal property accordingly
Parameters:
Name Type Argument Description options.fromstring current unique identifier for the secret backend mount
options.tostring new unique identifier for the secret backend mount
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise
-
<inner> tuneMount()
-
Tunes the TTL config of an existing mount
Parameters:
Name Type Argument Description options.idstring unique identifier for the secret backend mount
options.body.default_lease_ttlstring <optional>
the default lease TTL as a string
options.body.max_lease_ttlstring <optional>
the maximum value to set a ttl as a string
options.tokenstring <optional>
the authentication token
Returns:
- Type
- Promise