Click or drag to resize

IWsEndUserGetVMPerformances Method

The methods return information about the actual status of virtual servers requested The available information sets are CPU and Net info. The servers with VMWare hypervisor have additional data regarding RAM and Hard Disk.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult<VMPerformanceResult[]> GetVMPerformances(
	int[] VmIDs,
	VMPInformationType infoTypes


Type: SystemInt32
Array containing the IDs of requested virtual servers
Type: VMPInformationType
Object of type VMPInformationType specifying the desired informations

Return Value

Type: WsResultVMPerformanceResult
The method return an array of VMPerformanceResult: one object for each ID specified in the request
The following example shows a user-defined method, called GetVMPerformances(), which performs a call to the WsEndUser, asking for CPU, IO, BANDWIDTH info for the Virtual Servers having ID = 12 and ID = 14
public VMPerformanceResult[] GetVMPerformances()
  int[] vmIDs = {12, 14} //The IDs of the servers i'm interested to
  VMPInformationType infoTypes = new VMPInformationType()
      BANDWIDTH = true,
      CPU = true,
      IO = true,
      NET = false

  using (var client = new WsEndUserClient())
    WsResultOfVMPerformanceResult result = client.GetVMPerformances(vmIDs, infoTypes);
    if (result.Success)
      return result.Value;
      throw new CodedException(GetErrorCode(result.ResultCode), result.ResultMessage);
See Also