IJsonpWsEndUserSetEnqueueServerSnapshot 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueServerSnapshot/{jsonp}/{userName}/{token}/{serverId}/{snapshotOperation}")]
Stream SetEnqueueServerSnapshot(
string jsonp,
string userName,
string token,
string serverId,
string snapshotOperation
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueServerSnapshot/{jsonp}/{userName}/{token}/{serverId}/{snapshotOperation}")>
Function SetEnqueueServerSnapshot (
jsonp As String,
userName As String,
token As String,
serverId As String,
snapshotOperation As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueServerSnapshot/{jsonp}/{userName}/{token}/{serverId}/{snapshotOperation}")]
Stream^ SetEnqueueServerSnapshot(
String^ jsonp,
String^ userName,
String^ token,
String^ serverId,
String^ snapshotOperation
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueServerSnapshot/{jsonp}/{userName}/{token}/{serverId}/{snapshotOperation}")>]
abstract SetEnqueueServerSnapshot :
jsonp : string *
userName : string *
token : string *
serverId : string *
snapshotOperation : string -> Stream
function SetEnqueueServerSnapshot(
jsonp : String,
userName : String,
token : String,
serverId : String,
snapshotOperation : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- serverId
- Type: SystemString
System.Int32 value to indicate server ID snapshotOperation
- snapshotOperation
- Type: SystemString
Operation Type allow for snapshot. For more information consult SnapshotOperationTypes object
Return Value
Type:
Stream
WsResult contain call information. For more information consult WsResult
Examplesprivate 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