diff --git a/website/source/api/secret/databases/index.html.md b/website/source/api/secret/databases/index.html.md index 604715990a..6c3dcee452 100644 --- a/website/source/api/secret/databases/index.html.md +++ b/website/source/api/secret/databases/index.html.md @@ -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.