IJsonPostWsEndUserSetEnqueueServerDeletion Method
|
Performs a delete operation of the specified virtual server. By the method SetEnqueueServerDeletion() of Aruba WsEndUser,
you can append operation (Job) cancellation of the virtual server specified by parameter ServerID. this operation
will remove the virtual server from the virtual datacenter associated with the specified account.
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 SetEnqueueServerDeletion(
ServerRequest request
)
<OperationContractAttribute>
<WebInvokeAttribute(Method := "POST", ResponseFormat := WebMessageFormat.Json)>
Function SetEnqueueServerDeletion (
request As ServerRequest
) As Stream
[OperationContractAttribute]
[WebInvokeAttribute(Method = L"POST", ResponseFormat = WebMessageFormat::Json)]
Stream^ SetEnqueueServerDeletion(
ServerRequest^ request
)
[<OperationContractAttribute>]
[<WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)>]
abstract SetEnqueueServerDeletion :
request : ServerRequest -> Stream
function SetEnqueueServerDeletion(
request : ServerRequest
) : Stream
Parameters
- request
- Type: Aruba.Cloud.WsEndUser.JsonServerRequest
Return Value
Type:
Stream
The method returns an object WsResult containing information on the outcome of the method call.
Examples
The following example shows a user-defined method, called DeleteVirtualServer(),
which means a call to SetEnqueueServerDeletion() to Aruba WsEndUser, delete the virtual server specified by parameter.
private void DeleteVirtualServer()
{
try
{
WsResult result = client.SetEnqueueServerDeletion(685);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueServerDeletion(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format(
"An error has occurred while deleting a virtual server. {0}", ex.Message));
}
}
See Also