IWsEndUserSetEnqueueDeassociateVLan Method
|
Removes an assignment between a network adapter and a VLAN. By the method SetEnqueueDeassociateVLan () of Aruba WsEndUser, it is possible to remove
the association between a network adapter and a VLAN. The process of disassociation can not be completed if the VLAN or network adapter not
exist, does not belong to the specified account, or not appear to be associated with each other. Similarly, the operation will fail end
if it exists in the queue operation 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 SetEnqueueDeassociateVLan(
VlanRequest vlanRequest
)
<OperationContractAttribute>
Function SetEnqueueDeassociateVLan (
vlanRequest As VlanRequest
) As WsResult
[OperationContractAttribute]
WsResult^ SetEnqueueDeassociateVLan(
VlanRequest^ vlanRequest
)
[<OperationContractAttribute>]
abstract SetEnqueueDeassociateVLan :
vlanRequest : VlanRequest -> WsResult
function SetEnqueueDeassociateVLan(
vlanRequest : VlanRequest
) : WsResult
Parameters
- vlanRequest
- Type: Aruba.Cloud.Provisioning.EntitiesVlanRequest
Return Value
Type:
WsResult
The method returns an object WsResult containing information on the outcome of the method call.
Examples
The following example shows a user-defined method, called DeassociateVLan (), or through a call to
SetEnqueueDeassociateVLan () to Aruba WsEndUser, removes the association between a resource type of network adapter with code 1941 and a
resource of type VLAN with code 2019.
private static void DeassociateVLan()
{
try
{
WsResult result = client.SetEnqueueAssociateVLan(1941, 2019);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetEnqueueAssociateVLan(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format(
"An error has occurred while deassociating a network adapter from a VLan {0}", ex.Message));
}
}
See Also