You are currently browsing legacy 3.0 version of documentation. Click here to switch to the newest 5.0 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Commands: How to get names of all databases on a server?

Syntax

curl \
	http://{serverName}/databases/?pageSize={pageSize}&start={start} \
	-X GET

Request

Query parameter Required Description
pageSize No Maximum number of records that will be downloaded
start No Number of records that should be skipped. Default: 0

Response

Status code Description
200 OK
Return Value Description
payload array of database names

Example

curl -X GET "http://localhost:8080/databases?pageSize=8&start=0" 
< HTTP/1.1 200 OK
["db2","disabled","Documentation","http","NewNorthwind","NorthWind","rep1","sample"]