mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-04 20:06:27 +02:00
adding LIST for connections in database backend (#4027)
This commit is contained in:
parent
e118ae30ba
commit
44a58df738
@ -101,6 +101,34 @@ $ curl \
|
||||
}
|
||||
```
|
||||
|
||||
## List Connections
|
||||
|
||||
This endpoint returns a list of available connections. Only the connection names
|
||||
are returned, not any values.
|
||||
|
||||
| Method | Path | Produces |
|
||||
| :------- | :--------------------------- | :--------------------- |
|
||||
| `LIST` | `/database/config` | `200 application/json` |
|
||||
|
||||
### Sample Request
|
||||
|
||||
```
|
||||
$ curl \
|
||||
--header "X-Vault-Token: ..." \
|
||||
--request LIST \
|
||||
https://vault.rocks/v1/database/config
|
||||
```
|
||||
|
||||
### Sample Response
|
||||
|
||||
```json
|
||||
{
|
||||
"data": {
|
||||
"keys": ["db-one", "db-two"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Delete Connection
|
||||
|
||||
This endpoint deletes a connection.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user