Click or drag to resize

IWsEndUserSetEnqueueMountDvdIso Method

Performs an operation to mount ISO images to a virtual machine. By the method SetEnqueueMountDvdIso() of Aruba WsEndUser you can mount an ISO image to a virtual machine. This is done using an ISO image (custom ISO) available in the FTP space associated with the account specified in the authentication phase.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetEnqueueMountDvdIso(
	NewIso iso
)

Parameters

iso
Type: Aruba.Cloud.Provisioning.EntitiesNewIso
NewIso class object that represents the ISO image to install on the virtual server. The class NewIso contains within it all information necessary to make the mount operation image.

Return Value

Type: WsResult
The method returns an object WsResult containing information on the outcome of the method call.
Examples
The following example shows a user-defined method, called MountDvdIso(), which creates an object of type NewIso. Through a call to the SetEnqueueMountDvdIso() WsEndUser of Aruba, the image is mounted Hyper-V_Server_R2_SP1.iso present in the FTP account on the server with id 703.
private static void MountDvdIso()
{
  try
  {
    NewIso isoToMount = new NewIso()
    {
      IsoPath  = @"Hyper-V_Server_R2_SP1.iso",
      IsoType  = IsoTypes.Custom,
      ServerId = 703
    };

    WsResult result = client.SetEnqueueMountDvdIso (isoToMount);

    //throwing exception if call failed
    if (!result.Success)
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetEnqueueMountDvdIso(). {0}", result.ResultMessage));
    }
  catch (Exception ex)
  {
    throw new ApplicationException(
      String.Format("An error has occurred while mounting an ISO image {0}", ex.Message));
  }
}
See Also