Campus Switching and Routing

New Contributor

ArubaOS REST API /vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}



I'm trying to add a VLAN to a port with an API call. I can retrieve and delete a VLAN from a port (GET .../vlans-ports and DELETE .../vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id}).


Accourding to the documentation a PUT .../vlans-ports/{VlanPort.vlan_id}-{VlanPort.port_id} should add the VLAN to the specified port and return VlanPort. Instead the call returns a session id:

"uri": "/rest/v1/login-sessions","cookie":


Has anyone succeeded in adding a VLAN to a 802.1q port?


Link to the documentation:


Search Airheads
Showing results for 
Search instead for 
Did you mean: