# getActiveMaster {#getactivemaster}

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

## Syntax {#syntax}

`getActiveMaster()`

## Arguments {#arguments}

None.

## Details {#details}

Return the alias of the controller node of a cluster. For a cluster with multiple controller nodes, return the alias of the Leader controller node. Please note that this function can only be executed on the controller.

## Examples {#examples}

```
getActiveMaster();
// output: controller1
```

