Click or drag to resize

IWsEndUserSetUpdateServerScheduledOperation 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]
WsResult SetUpdateServerScheduledOperation(
	SetUpdateScheduledOperationRequest operationRequest
)

Parameters

operationRequest
Type: Aruba.Cloud.Provisioning.EntitiesSetUpdateScheduledOperationRequest

Return Value

Type: WsResult
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