IJsonpWsEndUserSetPurchaseIpAddress Method
|
Reserve an IP address to the specified account at the time of authentication. By the method SetPurchaseIpAddress() of Aruba WsEndUser,
You can reserve all'acocunt specifies the first free public IP address. The recording operation of the IP address,
depends on the presence of a claim equal to or above the cost of acquisition of the IP address. If the recording operation and
free IP address assignment is successful, the object returned by the method SetPurchaseIpAddress() will
all information related to the resource: address, subnet mask, gateway address, etc.
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 = "SetPurchaseIpAddress/{jsonp}/{userName}/{token}")]
Stream SetPurchaseIpAddress(
string jsonp,
string userName,
string token
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetPurchaseIpAddress/{jsonp}/{userName}/{token}")>
Function SetPurchaseIpAddress (
jsonp As String,
userName As String,
token As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetPurchaseIpAddress/{jsonp}/{userName}/{token}")]
Stream^ SetPurchaseIpAddress(
String^ jsonp,
String^ userName,
String^ token
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetPurchaseIpAddress/{jsonp}/{userName}/{token}")>]
abstract SetPurchaseIpAddress :
jsonp : string *
userName : string *
token : string -> Stream
function SetPurchaseIpAddress(
jsonp : String,
userName : String,
token : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
Return Value
Type:
Stream
The method returns an object WsResult<WsResultOfIPAddress[]> containing the IP address information confidential.
Examplesprivate void PurchaseIpAddress(WsEndUserClient client)
{
try
{
WsResultOfIPAddress result = client.SetPurchaseIpAddress();
if (!result.Success)
throw new ApplicationException(String.Format("An error has occurred while invoking SetPurchaseIpAddress(). {0}", result.ResultMessage));
}
catch (Exception ex)
{
throw new ApplicationException(
String.Format("An error has occurred while setting server note {0}", ex.Message));
}
}
See Also