Click or drag to resize

IJsonPostWsEndUserSetEnqueueServerSnapshot Method

This method execute creation, restore or delete of snapshot. By SetEnqueueServerSnapshot it’s possible add creation, restore or delete operation (Job). Restore operation execute restore of resource (disk, data) but not restore RAM, CPU, Virtual LAN and Public IP. This feature is allowed on VmWare and one snapshot is allowed. Snapshot deadline is 7 day. In this lifetime user can request restore and delete. Then 7 day snapshot is deleted automatically.

Namespace:  Aruba.Cloud.WsEndUser
Assembly:  Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream SetEnqueueServerSnapshot(
	SetEnqueueServerSnapshotRequest request
)

Parameters

request
Type: Aruba.Cloud.WsEndUser.JsonSetEnqueueServerSnapshotRequest

Return Value

Type: Stream
WsResult contain call information. For more information consult WsResult
Examples
private static void CreateSnapshot()
{
  try
  {
    WsResult result = client.SetEnqueueServerSnapshot(703, SnapshotOperationTypes.Create);

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