Click or drag to resize

IWsEndUserSetEnqueueServerStart Method

This method executes start of virtual server. By SetEnqueueServerStart it’s possible add startup 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 SetEnqueueServerStart(
	int serverId
)

Parameters

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

Return Value

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

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