Package org.springframework.vault.core
Interface ReactiveVaultKeyValueMetadataOperations
public interface ReactiveVaultKeyValueMetadataOperations
Interface that specifies a basic set of Vault operations using Vault's
versioned Key/Value (kv version 2) secrets engine. Paths used in this
operations interface are relative and outgoing requests prepend paths with
the according operation-specific prefix.
Clients using versioned Key/Value must be aware they are reading from a versioned secrets engine as the versioned Key/Value API (kv version 2) is different from the unversioned Key/Value API (kv version 1).
- Since:
- 3.1
- Author:
- Timothy R. Weiand
- See Also:
-
ReactiveVaultKeyValueOperationsVaultKeyValue2Template
-
Method Summary
Modifier and TypeMethodDescriptionPermanently delete the key metadata and all version data for the specified key.Retrieve the metadata and versions for the secret at the specified path.put(String path, VaultMetadataRequest body) Update the secret metadata, or creates new metadata if not present.
-
Method Details
-
get
Retrieve the metadata and versions for the secret at the specified path.- Parameters:
path- the secret path, must not be null or empty.- Returns:
VaultMetadataResponse
-
put
Update the secret metadata, or creates new metadata if not present.- Parameters:
path- the secret path, must not be null or empty.body-VaultMetadataRequest- Returns:
- a Mono signalling completion or an error.
-
delete
Permanently delete the key metadata and all version data for the specified key. All version history will be removed.- Parameters:
path- the secret path, must not be null or empty.- Returns:
- a Mono signalling completion or an error.
-