Interface Kv2Secrets
- All Superinterfaces:
Secrets
Secrets for KV version 2 secrets engine blocking implementation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Engine<Kv2Secrets> KV (Key/Value) secrets engine version 2. -
Method Summary
Modifier and TypeMethodDescriptioncreate(CreateKv2.Request request) Create a new secret.default CreateKv2.ResponseCreate a new secret on the defined path.delete(DeleteKv2.Request request) Delete a secret version.default DeleteKv2.ResponseDelete specific versions of a secret.deleteAll(DeleteAllKv2.Request request) Delete the secret and all its versions permanently.default DeleteAllKv2.ResponseDelete the secret and all its versions permanently.destroy(DestroyKv2.Request request) Destroy a secret version.default DestroyKv2.ResponsePermanently remove specific versions of a secret.get(GetKv2.Request request) Get a version of a secret.Get the latest version of a secret.Get a version of a secret.undelete(UndeleteKv2.Request request) Undelete a secret version.default UndeleteKv2.ResponseUndelete deleted versions of a secret.update(UpdateKv2.Request request) Update a secret on the defined path.default IntegerUpdate a secret on the defined path.default IntegerUpdate a secret on the defined path.
-
Field Details
-
ENGINE
KV (Key/Value) secrets engine version 2.Documentation: https://www.vaultproject.io/docs/secrets/kv/kv-v2
-
-
Method Details
-
get
Get the latest version of a secret.- Parameters:
path- relative to the mount point, no leading slash- Returns:
- the secret
-
get
Get a version of a secret.- Parameters:
path- relative to the mount point, no leading slashversion- version to retrieve- Returns:
- the secret
-
get
Get a version of a secret.- Parameters:
request- with secret's path and optional version- Returns:
- vault response with the secret if found
-
update
Update a secret on the defined path. The new values replace existing values.- Parameters:
path- relative to the mount point, no leading slashnewValues- new values of the secret- Returns:
- the version created
-
update
Update a secret on the defined path. The new values replace existing values.- Parameters:
path- relative to the mount point, no leading slashnewValues- new values of the secretexpectedVersion- expected latest version- Returns:
- the version created
-
update
Update a secret on the defined path. The new values replace existing values.- Parameters:
request- update request with path, new values and expected version- Returns:
- vault response with the version created
-
create
Create a new secret on the defined path.- Parameters:
path- relative to the mount point, no leading slashnewSecretValues- values to use in the new secret- Returns:
- vault response
-
create
Create a new secret.- Parameters:
request- request with path and values- Returns:
- create secret response
-
delete
Delete specific versions of a secret.- Parameters:
path- relative to the mount point, no leading slashversions- versions to delete- Returns:
- vault response
-
delete
Delete a secret version.- Parameters:
request- request with path and version(s)- Returns:
- delete secret response
-
undelete
Undelete deleted versions of a secret. This method can be called repeatedly and even on non-existent versions without throwing an exception.- Parameters:
path- relative to the mount point, no leading slashversions- versions to undelete- Returns:
- vault response
-
undelete
Undelete a secret version.- Parameters:
request- request with and and version(s)- Returns:
- undelete secret response
-
destroy
Permanently remove specific versions of a secret. This method can be called repeatedly and even on non-existent versions without throwing an exception.- Parameters:
path- relative to the mount point, no leading slashversions- versions to destroy- Returns:
- vault response
-
destroy
Destroy a secret version.- Parameters:
request- request with path and version(s)- Returns:
- destroy secret response
-
deleteAll
Delete the secret and all its versions permanently. This method can be called repeatedly and even on non-existent versions without throwing an exception.- Parameters:
path- relative to the mount point, no leading slash- Returns:
- vault response
-
deleteAll
Delete the secret and all its versions permanently. This method can be called repeatedly and even on non-existent versions without throwing an exception.- Parameters:
request- with relative path to the mount point, no leading slash- Returns:
- vault response
-