Operations: Server: How to Get the Names of Databases on a Server

To download available database names from a server, use the GetDatabaseNames operation.

Syntax

public GetDatabaseNamesOperation(int start, int pageSize)
Parameters
pageSize int Maximum number of records that will be downloaded
start int Number of records that should be skipped.
Return Value
String[] Names of databases on a server

Example

GetDatabaseNamesOperation operation = new GetDatabaseNamesOperation(0, 25);
String[] databaseNames = store.maintenance().server().send(operation);