adding LIST for connections in database backend (#4027)

This commit is contained in:
Chris Hoffman 2018-02-22 15:27:33 -05:00 committed by GitHub
parent e118ae30ba
commit 44a58df738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.