# getAllClusters {#getAllClusters}

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

## Syntax {#syntax}

`getAllClusters()`

## Arguments {#arguments}

None

## Details {#details}

Return the names of all clusters. This function can only be executed by an administrator on the MoM \(Master of Masters\) cluster.

**Return value:**A table with the following columns:

-   clusterName: A string indicating the name of the cluster.
-   clusterType: A string indicating the type of the cluster. “momCluster” refers to the an MoM cluster in a multi-cluster environment, while ”memberCluster” refers to a member cluster.
-   status: An integer indicating whether the cluster is alive. 0: Abnormal; 1: Alive.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
getAllClusters()
```

|clusterName|clusterType|status|
|-----------|-----------|------|
|member\_cluster2|memberCluster|1|
|mom\_cluster1|momCluster|1|
|member\_cluster1|memberCluster|1|

