From 44a58df73843cd94d2b71241a0aa93bb064483a1 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Thu, 22 Feb 2018 15:27:33 -0500 Subject: [PATCH] adding LIST for connections in database backend (#4027) --- .../source/api/secret/databases/index.html.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/website/source/api/secret/databases/index.html.md b/website/source/api/secret/databases/index.html.md index 604715990abd..6c3dcee45212 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.