Click or drag to resize

IWsEndUserSetEnqueueDeassociateIpAddress 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]
WsResult SetEnqueueDeassociateIpAddress(
	IpAddressesRequest ipRequest
)

Parameters

ipRequest
Type: Aruba.Cloud.Provisioning.EntitiesIpAddressesRequest

Return Value

Type: WsResult
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