getClusterDFSDatabases

Syntax

getClusterDFSDatabases([includeSysDb=true])

Details

When executed by an administrator, this function returns distributed databases in the cluster.

When executed by a non-admin user, it returns the distributed databases in the cluster for which the user has any of the following permissions: DB_MANAGE, DB_OWNER, DB_READ, DB_INSERT, DB_UPDATE, DB_DELETE, DBOBJ_CREATE, DBOBJ_DELETE.

Parameters

includeSysDb (optional): A boolean value that controls whether system databases are included in the returned results. The default value is true. This parameter applies only to admin users. Regular users cannot view system databases, even if includeSysDb is set to true.

Returns

A STRING vector.

Examples

getClusterDFSDatabases()
// output: ["dfs://demohash","dfs://myDataYesDB","dfs://testDB"]