Click or drag to resize

IJsonpWsEndUserSetUpdateServerScheduledOperation 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetUpdateServerScheduledOperation/{jsonp}/{userName}/{token}?scheduledOperationId={scheduledOperationId}&operationType={operationType}&operationsParameters={operationsParameters}&schedulePlan={schedulePlan}")]
Stream SetUpdateServerScheduledOperation(
	string jsonp,
	string userName,
	string token,
	int scheduledOperationId,
	string operationType,
	string operationsParameters,
	string schedulePlan
)

Parameters

jsonp
Type: SystemString
userName
Type: SystemString
token
Type: SystemString
scheduledOperationId
Type: SystemInt32
operationType
Type: SystemString
operationsParameters
Type: SystemString
schedulePlan
Type: SystemString

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