# getDatabasesByCluster {#getDatabasesByCluster}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`getDatabasesByCluster(clusterName)`

## Arguments {#arguments}

**clusterName** is a STRING scalar indicating the name of the cluster.

## Details {#details}

Get all databases of the specified cluster. This function can only be executed by an administrator on the MoM \(Master of Masters\) cluster.

**Return value**: A STRING vector.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
getDatabasesByCluster("MoMSender")

// Output:  ["dfs://db2","dfs://db1"]
```

