Click or drag to resize

IWsEndUserSetEnqueueServerStop Method

This method executes shutdown of virtual server. By SetEnqueueServerStart it’s possible add shutdown operation (Job) of virtual server with serverId in input

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 SetEnqueueServerStop(
	int serverId
)

Parameters

serverId
Type: SystemInt32
System.Int32 value indicate server ID to shutdown

Return Value

Type: WsResult
WsResult contain call information. For more information consult WsResult
Examples
In this example ShutdownVirtualServer() method calls SetEnqueueServerStop() method for start virtual server
private void ShutdownVirtualServer()
{
  try
  {
    WsResult result = client.SetEnqueueServerShutdown(685);

    if (!result.Success)
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetEnqueueServerStop(). {0}", result.ResultMessage));
    }
  }
  catch (Exception ex)
  {
    throw new ApplicationException(String.Format(
      "An error has occurred while shutting down a virtual server. {0}", ex.Message));
  }
}
See Also