Click or drag to resize

IJsonpWsEndUserSetEnqueueDeassociateIpAddress Method

Removes an assignment between an IPAddress to a specified network adapter. By the method SetEnqueueDeassociateIpAddress () of Aruba WsEndUser, you can remove the association between a network adapter and one or more IPAddress. The process of disassociation IP addresses to a network adapter can not be completed if the IPAddress or network adapter does not exist, do not belong to the specified account, or does not appear to be associated with each other. Similarly, the operation will fail if there is an operation in the queue, on the resource in question, in a state different from error or Completed

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 = "SetEnqueueDeassociateIpAddress/{jsonp}/{userName}/{token}/{ipAddressResourceId}/{networkAdapterId}/{removeIPOnVirtualMachine}")]
Stream SetEnqueueDeassociateIpAddress(
	string jsonp,
	string userName,
	string token,
	string ipAddressResourceId,
	string networkAdapterId,
	string removeIPOnVirtualMachine = null
)

Parameters

jsonp
Type: SystemString
userName
Type: SystemString
token
Type: SystemString
ipAddressResourceId
Type: SystemString
networkAdapterId
Type: SystemString
Valore di tipo System.Int32 che rappresenta l'identificativo univoco del network adapter a cui disassociare l'indirizzo Ip.
removeIPOnVirtualMachine (Optional)
Type: SystemString

Return Value

Type: Stream
Value of type System.Int32 which is the unique identifier of the network adapter to which disassociate the IP address.
Examples
private static void EnqueueDeassociateIpAddress(WsEndUserClient client)
{
  try
  {
    WsResult result = client.SetEnqueueDeassociateIpAddress(new int[] { 2577, 2578 }, 2844);

    if (!result.Success)
    {
      throw new ApplicationException(String.Format(
        "An error has occurred while invoking SetEnqueueDeassociateIpAddress(). {0}", result.ResultMessage));
    }
  }
  catch (Exception ex)
  {
    throw new ApplicationException(String.Format(
      "An error has occurred while deassociating an IP address list to a network adapter {0}", ex.Message));
  }
}
See Also