Click or drag to resize

IWsEndUserGetServersList Method

The method returns the list of User's Virtual Servers, filtered by the given request

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult<ServerDetails[]> GetServersList(
	GetServersListRequest operationRequest


Type: Aruba.Cloud.Provisioning.EntitiesGetServersListRequest
Object of type GetServerListRequest, it allows to filter the data by server status (ServerStatus) and to get an extended result or only basic informations (LightData)

Return Value

Type: WsResultServerDetails
Array of type ServerDaetails, containing informations about requested virtual machines
public ServerDetails[] GetServersList(ServerStatus[] serverStatuses, bool lightData = true)
  using (var client = new WsEndUserClient())
    GetServersListRequest operationRequest = new GetServersListRequest();
    operationRequest.LightData = lightData;
    operationRequest.ServerStatuses = serverStatuses;

    WsResultOfArrayOfServerDetails result = client.GetServersList(operationRequest);
    if (result.Success)
      return result.Value;
      throw new CodedException(GetErrorCode(result.ResultCode), result.ResultMessage);
See Also