Skip to content

Commit bbc9bd8

Browse files
authored
DOC-8925 -- Add all_dbs endpoint (#530)
https://issues.couchbase.com/browse/DOC-8925
1 parent 95ae07d commit bbc9bd8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

modules/ROOT/assets/attachments/sync-gateway-admin.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ paths:
8888
items:
8989
type: object
9090
$ref: '#/definitions/ActiveTaskResponseBody'
91+
92+
/_all_dbs:
93+
get:
94+
tags:
95+
- server
96+
summary: Lists node's databases
97+
description: |+
98+
Return a list all databases running on the node
99+
responses:
100+
200:
101+
description: |+
102+
OK -- Operation successful
103+
104+
The response body contains a string array containing the names of all databases running on this sync gateway node
105+
schema:
106+
$ref: '#/definitions/all_dbs'
107+
91108
/{db}/_bulk_docs:
92109
parameters:
93110
- $ref: '#/parameters/db'
@@ -1795,6 +1812,16 @@ definitions:
17951812
status:
17961813
type: string
17971814
description: The current status of sgcollect_info
1815+
all_dbs:
1816+
type: object
1817+
properties:
1818+
db-names:
1819+
type: array
1820+
description: |+
1821+
A string array containing the names of all databases running on this sync gateway node
1822+
1823+
For example ```["db1","db2"]```
1824+
17981825
ExpVars:
17991826
type: object
18001827
properties:

0 commit comments

Comments
 (0)