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
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetUpdateServerScheduledOperation/{jsonp}/{userName}/{token}?scheduledOperationId={scheduledOperationId}&operationType={operationType}&operationsParameters={operationsParameters}&schedulePlan={schedulePlan}")>
Function SetUpdateServerScheduledOperation (
jsonp As String,
userName As String,
token As String,
scheduledOperationId As Integer,
operationType As String,
operationsParameters As String,
schedulePlan As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"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
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetUpdateServerScheduledOperation/{jsonp}/{userName}/{token}?scheduledOperationId={scheduledOperationId}&operationType={operationType}&operationsParameters={operationsParameters}&schedulePlan={schedulePlan}")>]
abstract SetUpdateServerScheduledOperation :
jsonp : string *
userName : string *
token : string *
scheduledOperationId : int *
operationType : string *
operationsParameters : string *
schedulePlan : string -> Stream
function SetUpdateServerScheduledOperation(
jsonp : String,
userName : String,
token : String,
scheduledOperationId : int,
operationType : String,
operationsParameters : String,
schedulePlan : String
) : Stream
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