GET _all_dbs

In this document

Request


Request headers

This request does not have any required headers.

Query parameters

This request does not use query parameters.

Message body

This request does not use a message body.

Response


Status codes

Response headers

This response uses only standard HTTP headers.

Message body

The response message contains the following object:

NameTypeDescription
not applicablearrayList of the names of the databases on the server

Example


The following example requests a list of databases on the server. The response lists the three databases on the server: beer-db, cookbook, and genealogy.

Request

GET /_all_dbs HTTP/1.1
Host: localhost:59840

Response

HTTP/1.1 200 OK
Server: CouchbaseLite 1.485
Transfer-Encoding: chunked
Accept-Ranges: bytes
Content-Type: application/json
Cache-Control: must-revalidate
Date: Mon, 09 Dec 2013 01:45:38 GMT
[
  "_replicator",
  "beer-db",
  "cookbook",
  "genealogy"
]