IJsonPostWsEndUserSetEnqueueServerRestore 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: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream SetEnqueueServerRestore(
SetEnqueueServerRestoreRequest request
)
<OperationContractAttribute>
<WebInvokeAttribute(Method := "POST", ResponseFormat := WebMessageFormat.Json)>
Function SetEnqueueServerRestore (
request As SetEnqueueServerRestoreRequest
) As Stream
[OperationContractAttribute]
[WebInvokeAttribute(Method = L"POST", ResponseFormat = WebMessageFormat::Json)]
Stream^ SetEnqueueServerRestore(
SetEnqueueServerRestoreRequest^ request
)
[<OperationContractAttribute>]
[<WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)>]
abstract SetEnqueueServerRestore :
request : SetEnqueueServerRestoreRequest -> Stream
function SetEnqueueServerRestore(
request : SetEnqueueServerRestoreRequest
) : Stream
Parameters
- request
- Type: Aruba.Cloud.WsEndUser.JsonSetEnqueueServerRestoreRequest
Return Value
Type:
Stream
The method returns an object WsResult containing information on the outcome of the method call.
Examples
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()
{
try
{
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