Click or drag to resize

IWsEndUserSetEnqueueServerRestore Method

Performs a restore operation of the specified virtual server. By the method SetEnqueueServerArchiviation () of Aruba WsEndUser, you can append operation (Job) to restore a virtual server stored, bringing in fact the group of active servers.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: (
WsResult SetEnqueueServerRestore(
	ServerRestore server


Type: Aruba.Cloud.Provisioning.EntitiesServerRestore

Return Value

Type: WsResult
The method returns an object WsResult containing information on the outcome of the method call.
In the following example describes a user-defined method, called RestoreVirtualServerFromArchive (), which via a call the method SetEnqueueServerRestore () to Aruba WsEndUser, reports the virtual server with code 685, previously set was stored, in the group of active machines.
private void RestoreVirtualServerFromArchive()
    WsResult result = client.SetEnqueueServerRestore(685);

    if (!result.Success)
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetEnqueueServerRestore(). {0}", result.ResultMessage));
  catch (Exception ex)
    throw new ApplicationException(
      String.Format("An error has occurred while restoring a virtual server. {0}", ex.Message));
See Also