Skip to content

Commit

Permalink
adding LIST for connections in database backend (#4027)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishoffman authored and Chris Hoffman committed Feb 22, 2018
1 parent c3812d8 commit dba12bc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions website/source/api/secret/databases/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dba12bc

Please sign in to comment.