IJsonpWsEndUserSetEnqueueServerArchiviation Method
|
Performs a storage operation of the specified virtual server. By the method SetEnqueueServerArchiviation() of Aruba WsEndUser,
you can append operation (Job) storage of the virtual server specified by parameter ServerID.
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 = "SetEnqueueServerArchiviation/{jsonp}/{userName}/{token}/{serverId}")]
Stream SetEnqueueServerArchiviation(
string jsonp,
string userName,
string token,
string serverId
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueServerArchiviation/{jsonp}/{userName}/{token}/{serverId}")>
Function SetEnqueueServerArchiviation (
jsonp As String,
userName As String,
token As String,
serverId As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueServerArchiviation/{jsonp}/{userName}/{token}/{serverId}")]
Stream^ SetEnqueueServerArchiviation(
String^ jsonp,
String^ userName,
String^ token,
String^ serverId
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueServerArchiviation/{jsonp}/{userName}/{token}/{serverId}")>]
abstract SetEnqueueServerArchiviation :
jsonp : string *
userName : string *
token : string *
serverId : string -> Stream
function SetEnqueueServerArchiviation(
jsonp : String,
userName : String,
token : String,
serverId : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- serverId
- Type: SystemString
Value of type System.Int32 which is the unique identifier of the virtual server to archive.
Return Value
Type:
Stream
The method returns an object WsResult containing information on the outcome of the method call.
For further details on the information returned by the method refer to the definition of the class
WsResult.
Examples
The following example describes a user-defined method, called ArchiveVirtualServer(), which through a call to the Aruba WsEndUser SetEnqueueServerArchiviation() method,
inserts the virtual server indicated in the group of archived machines.
private void ArchiveVirtualServer()
{
try
{
WsResult result = client.SetEnqueueServerArchiviation(685);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueServerArchiviation(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format("An error has occurred while archiving a virtual server. {0}", ex.Message));
}
}
See Also