# GetServerList

Retrieves a list of servers under Qlik Enterprise Manager management as well as each server's properties.

Required User Role: See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2025/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Syntax

`public AemGetServerListResp GetServerList(` `);`

## Parameters

N/A

## Return values

AemGetServerListResp

Return values

| Value | Type | Description |
| --- | --- | --- |
| ServerList | List&lt;AemServerInfo&gt; | ReplicateServerInfo or ComposeServerInfo that inherit from AemServerInfo. |
| Description | string | The description of the server. |
| Host | string | The host name or IP address of the server. |
| LastConnection | string | The date and time of the last successful sync/retrieval of tasks and messages. |
| Message | string | The error message if Qlik Enterprise Manager fails to connect to the server. |
| Name | string | The name of the server. |
| Platform | AemPlatform<br><br>{<br><br>UNKNOWN = 0,<br>WINDOWS = 1,<br>LINUX = 2<br><br>} | AemPlatform |
| Port | string | The port through which the server is accessed. |
| State | AemServerState<br><br>{<br><br>NOT\_MONITORED = 0,<br><br>MONITORED = 1,<br><br>ERROR = 2<br><br>} | AemServerState |
| Version | string | The Replicate/Compose Server version. |

## Errors

All of the [general errors](https://help.qlik.com/en-US/enterprise-manager/May2025/Content/EnterpriseManager/EnterpriseManager_APIGuide/NetAPI/error_handling.htm) as well as the errors listed in the table below.

Error responses

| Error | Message | Description |
| --- | --- | --- |
| AEM\_SERVER\_NOT\_FOUND | Replicate server {server} could not be found. | Server name unknown to Qlik Enterprise Manager. |