Forum Discussion
Jun 14, 2018
Hi,
perhaps this question is still of interest? This one is a single step solution (tested on TMOS v13.1.0.6) to create a new VLAN and assign an interface in tagged mode:curl -sk -u admin:admin "https://10.200.200.21/mgmt/tm/net/vlan" -H 'Content-Type: application/json' -X POST -d '{"name":"vlan_lab-103", "tag":103, "interfaces": [{"name":"1.3", "tagged": true}]}'
A slightly modified syntax with the same result:
curl -sk -u admin:admin "https://10.200.200.21/mgmt/tm/net/vlan" -H 'Content-Type: application/json' -X POST -d '{"name":"vlan_lab-103", "tag":103, "interfacesReference":{"items":[{"name":"1.3","tagged":true}]}}'
Cheers, Stephan