IJsonpWsEndUserSetEnqueueServerStart Method
|
This method executes start of virtual server. By SetEnqueueServerStart it’s possible add startup operation (Job)
of virtual server with serverId in input.
This method executes start of virtual server. By SetEnqueueServerStart it’s possible add startup operation (Job)
of virtual server with serverId in input.
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 = "SetEnqueueServerStart/{jsonp}/{userName}/{token}/{serverId}")]
Stream SetEnqueueServerStart(
string jsonp,
string userName,
string token,
string serverId
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueServerStart/{jsonp}/{userName}/{token}/{serverId}")>
Function SetEnqueueServerStart (
jsonp As String,
userName As String,
token As String,
serverId As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueServerStart/{jsonp}/{userName}/{token}/{serverId}")]
Stream^ SetEnqueueServerStart(
String^ jsonp,
String^ userName,
String^ token,
String^ serverId
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueServerStart/{jsonp}/{userName}/{token}/{serverId}")>]
abstract SetEnqueueServerStart :
jsonp : string *
userName : string *
token : string *
serverId : string -> Stream
function SetEnqueueServerStart(
jsonp : String,
userName : String,
token : String,
serverId : String
) : Stream
Parameters
- jsonp
- Type: SystemString
ArubaCloud.Response.Server.call - userName
- Type: SystemString
Value of type string that represents the account to use in the format XXXX-ARU.
- token
- Type: SystemString
Value of type string that represents a valid token for the specified account.
- serverId
- Type: SystemString
System.Int32 value indicate server ID to start
System.Int32 value indicate server ID to start
Return Value
Type:
Stream
WsResult contain call information. For more information consult WsResult
Return Value
Type:
Stream
WsResult contain call information. For more information consult WsResult
Examples
In this example StartupVirtualServer() method calls SetEnqueueServerStart() method for start virtual server
private void StartupVirtualServer()
{
try
{
WsResult result = client.SetEnqueueServerStart(685);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueServerStart(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format(
"An error has occurred while starting up a virtual server. {0}", ex.Message));
}
}
Examples
The method can be called using the following notation:
Below an example of response:
ArubaCloud.Response.serverstart.call({
"ExceptionInfo": null,
"ResultCode": 0,
"ResultMessage": null,
"Success": true
})
See Also