IWsEndUserSetEnqueueServerPowerOff Method
|
This method execute forced shutdown of specified virtual server. By SetEnqueueServerPowerOff() method of Aruba WsEndUser it’s possible
add power off operation (Job) of virtual server indicate in input parameter
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 SetEnqueueServerPowerOff(
int serverId
)
<OperationContractAttribute>
Function SetEnqueueServerPowerOff (
serverId As Integer
) As WsResult
[OperationContractAttribute]
WsResult^ SetEnqueueServerPowerOff(
int serverId
)
[<OperationContractAttribute>]
abstract SetEnqueueServerPowerOff :
serverId : int -> WsResult
function SetEnqueueServerPowerOff(
serverId : int
) : WsResult
Parameters
- serverId
- Type: SystemInt32
System.Int32 value to indicate server ID to forced shutdown
Return Value
Type:
WsResult
WsResult contain call information. For more information consult WsResult
Examples
In this example PowerOffVirtualServer call SetEnqueueServerPowerOff to shutdown virtual server
private void PowerOffVirtualServer()
{
try
{
WsResult result = client.SetEnqueueServerPowerOff(685);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueServerPowerOff(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(
String.Format("An error has occurred while powering off a virtual server. {0}", ex.Message));
}
}
See Also