Language
C# Java
Article For
3.0

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"]