Click or drag to resize

IJsonPostWsEndUserSetUpdateServerScheduledOperation Method

Modify an existing scheduled operation. By the method SetUpdateServerScheduledOperation () of Aruba WsEndUser you can modify an existing scheduled task by specifying new values ​​for Operation, StartDate and OperationLabel.

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 SetUpdateServerScheduledOperation(
	SetUpdateScheduledOperationRequest request
)

Parameters

request
Type: Aruba.Cloud.WsEndUser.JsonSetUpdateScheduledOperationRequest

Return Value

Type: Stream
The method returns an object WsResult containing information on the outcome of the method call.
Examples
Below is an example of a method call SetUpdateServerScheduledOperation () to Aruba WsEndUser:
private void UpdateScheduledOperation()
{
  using (WsEndUserClient client = this.WsEndUserClient)
  {
    WsResult result = 
      client.SetUpdateServerScheduledOperation(46, ScheduledOperationTypes.ShutdownVirtualMachine, DateTime.Now.AddDays(1), "Auto power off");

    if (result.Success)
      return;

    this.LogError("SetUpdateServerScheduledOperation", new Exception(result.ResultMessage));
    throw new CodedException(result.ResultCode, result.ResultMessage);
  }
}
See Also