Interface Kv1SecretsRx
- All Superinterfaces:
SecretsRx
Secrets for KV version 1 secrets engine.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Engine<Kv1SecretsRx>
KV (Key/Value) secrets engine version 1. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(CreateKv1.Request request) Create a new secret on the defined path.default Single<CreateKv1.Response>
Create a new secret on the defined path.delete
(DeleteKv1.Request request) Delete the secret.default Single<DeleteKv1.Response>
Delete the secret.get
(GetKv1.Request request) Get a secret.Get a secret.update
(UpdateKv1.Request request) Update a secret on the defined path.default Single<UpdateKv1.Response>
Update a secret on the defined path.
-
Field Details
-
ENGINE
KV (Key/Value) secrets engine version 1.Documentation: https://www.vaultproject.io/docs/secrets/kv/kv-v1
-
-
Method Details
-
get
Get a secret.- Parameters:
path
- relative to the mount point, no leading slash- Returns:
- the secret if exists
-
get
Get a secret.- Parameters:
request
- with secret's path- Returns:
- response with secret if found
-
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 on the defined path.- Parameters:
request
- with path and secret's values- Returns:
- vault response
-
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:
- vault response
-
update
Update a secret on the defined path. The new values replace existing values.- Parameters:
request
- with secret's path and new values- Returns:
- vault response
-
delete
Delete the secret.- Parameters:
path
- relative to the mount point, no leading slash- Returns:
- vault response
-
delete
Delete the secret.- Parameters:
request
- request with secret's path- Returns:
- vault response
-