IJsonpWsEndUserSetEnqueueDeassociateVLan 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueDeassociateVLan/{jsonp}/{userName}/{token}/{vlanResourceId}/{networkAdapterId}/{resetNetworkAdapterOnVM}")]
Stream SetEnqueueDeassociateVLan(
string jsonp,
string userName,
string token,
string vlanResourceId,
string networkAdapterId,
string resetNetworkAdapterOnVM = null
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetEnqueueDeassociateVLan/{jsonp}/{userName}/{token}/{vlanResourceId}/{networkAdapterId}/{resetNetworkAdapterOnVM}")>
Function SetEnqueueDeassociateVLan (
jsonp As String,
userName As String,
token As String,
vlanResourceId As String,
networkAdapterId As String,
Optional resetNetworkAdapterOnVM As String = Nothing
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetEnqueueDeassociateVLan/{jsonp}/{userName}/{token}/{vlanResourceId}/{networkAdapterId}/{resetNetworkAdapterOnVM}")]
Stream^ SetEnqueueDeassociateVLan(
String^ jsonp,
String^ userName,
String^ token,
String^ vlanResourceId,
String^ networkAdapterId,
String^ resetNetworkAdapterOnVM = nullptr
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetEnqueueDeassociateVLan/{jsonp}/{userName}/{token}/{vlanResourceId}/{networkAdapterId}/{resetNetworkAdapterOnVM}")>]
abstract SetEnqueueDeassociateVLan :
jsonp : string *
userName : string *
token : string *
vlanResourceId : string *
networkAdapterId : string *
?resetNetworkAdapterOnVM : string
(* Defaults:
let _resetNetworkAdapterOnVM = defaultArg resetNetworkAdapterOnVM null
*)
-> Stream
function SetEnqueueDeassociateVLan(
jsonp : String,
userName : String,
token : String,
vlanResourceId : String,
networkAdapterId : String,
resetNetworkAdapterOnVM : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- vlanResourceId
- Type: SystemString
- networkAdapterId
- Type: SystemString
Value of type System.Int32 which is the unique identifier of the network adapter.
- resetNetworkAdapterOnVM (Optional)
- Type: SystemString
Return Value
Type:
Stream
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