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: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
WsResult SetEnqueueServerRestore(
ServerRestore server
)
<OperationContractAttribute>
Function SetEnqueueServerRestore (
server As ServerRestore
) As WsResult
[OperationContractAttribute]
WsResult^ SetEnqueueServerRestore(
ServerRestore^ server
)
[<OperationContractAttribute>]
abstract SetEnqueueServerRestore :
server : ServerRestore -> WsResult
function SetEnqueueServerRestore(
server : ServerRestore
) : WsResult
Parameters
- 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.
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