Interface DbSecretsRx
- All Superinterfaces:
SecretsRx
Database secrets engine API.
Documentation: https://www.vaultproject.io/docs/secrets/databases
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfigure
(DbConfigure.Request<?> dbRequest) Configure a database.createRole
(DbCreateRole.Request request) Create or update a role definition.delete
(DbDelete.Request request) Delete a database configuration.default Single<DbDelete.Response>
Delete a database configuration.deleteRole
(DbDeleteRole.Request request) Delete a database role.default Single<DbDeleteRole.Response>
deleteRole
(String name) Delete a database role.get
(DbGet.Request request) Get credentials from the/creds
endpoint.default Single<Optional<DbCredentials>>
Get credentials from the/creds
endpoint.list
(ListSecrets.Request request) List database connections.
-
Field Details
-
ENGINE
Database secrets engine.Documentation: https://www.vaultproject.io/docs/secrets/databases
-
-
Method Details
-
list
List database connections. -
get
Get credentials from the/creds
endpoint.- Parameters:
name
- name of the credentials- Returns:
- credentials
-
get
Get credentials from the/creds
endpoint.- Parameters:
request
- request with at least the name- Returns:
- get DB response
-
createRole
Create or update a role definition.- Parameters:
request
- role request- Returns:
- when the role is created
-
configure
Configure a database.- Parameters:
dbRequest
- configuration options - see specific database types- Returns:
- when the database is configured
-
delete
Delete a database configuration.- Parameters:
name
- name of the database configuration- Returns:
- when the database configuration is deleted
-
delete
Delete a database configuration.- Parameters:
request
- delete request with at least name configured- Returns:
- delete database configuration response
-
deleteRole
Delete a database role.- Parameters:
name
- name of the role- Returns:
- when the role is deleted
-
deleteRole
Delete a database role.- Parameters:
request
- request with at least the role name configured- Returns:
- delete database role response
-