IWsEndUserSetEnqueueServerSnapshot 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]
WsResult SetEnqueueServerSnapshot(
int serverId,
SnapshotOperationTypes snapshotOperation
)
<OperationContractAttribute>
Function SetEnqueueServerSnapshot (
serverId As Integer,
snapshotOperation As SnapshotOperationTypes
) As WsResult
[OperationContractAttribute]
WsResult^ SetEnqueueServerSnapshot(
int serverId,
SnapshotOperationTypes snapshotOperation
)
[<OperationContractAttribute>]
abstract SetEnqueueServerSnapshot :
serverId : int *
snapshotOperation : SnapshotOperationTypes -> WsResult
function SetEnqueueServerSnapshot(
serverId : int,
snapshotOperation : SnapshotOperationTypes
) : WsResult
Parameters
- serverId
- Type: SystemInt32
System.Int32 value to indicate server ID snapshotOperation
- snapshotOperation
- Type: Aruba.Cloud.Provisioning.EntitiesSnapshotOperationTypes
Operation Type allow for snapshot. For more information consult SnapshotOperationTypes object
Return Value
Type:
WsResult
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