Click or drag to resize

IWsEndUserGetCustomVirtualDisks Method

Get a list of VirtualDisk imported. By the method GetCustomVirtualDisks() of Aruba WsEndUser, it is possible to obtain a CustomVirtualDisk list of class objects that represent virtual disks imported in the ftp to the user specified in the authentication phase. And 'possible to filter the hypervisor for virtual disks, using a member of the HyperVisorType, or obtain a list is not filtered, using HyperVisorType.All

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult<CustomVirtualDisk[]> GetCustomVirtualDisks(
	HypervisorTypes hypervisorType


Type: Aruba.Cloud.Provisioning.EntitiesHypervisorTypes
Member dell'enumerazion HypervisorTypes. Indicates the type of hypervisor on which to conduct the search filter CustomVirtualDisk.

Return Value

Type: WsResultCustomVirtualDisk
The method returns an object WsResult<CustomVirtualDisk[]> containing the information on the virtual disk imported.
The following example describes a method, called TestGetCustomVirtualDisks(), which means a call to GetCustomVirtualDisks() to Aruba WsEndUser, get a list of imported virtual disks to be connected to the virtual servers.
private List<String> TestGetCustomVirtualDisk(WsEndUserClient client)
  List<String> recentCustomVirtualDisk = new List<String>() ;

    WsResultOfArrayOfCustomVirtualDisk  result = client.GetCustomVirtualDisks(HypervisorTypes.All)  ;

    if (result.Success)
      IEnumerable<CustomVirtualDisk> listOfRecentCustomVirtualDisk = result.Value.Where(p => p.CreationDate > new DateTime(2012, 01, 13));

      foreach (CustomVirtualDisk cvd in listOfRecentCustomVirtualDisk)
      //adding virtual disk's path to the list
  catch (Exception ex)
    throw new ApplicationException(String.Format(
      "An error has occurred while obtaining custom virtual disks information. {0}", ex.Message));

  return recentCustomVirtualDisk;
See Also