Forum Discussion
CBohannan_14046
Nimbostratus
Sep 09, 2015REST API VLAN creation and interface sub-collection
I have been playing around with REST API and have stumbled across a challenge around assigning a "tagged" interface.
In this sample REST call, I create the vlan name, set the vlan tag & set the de...
StephanManthey
Nacreous
Apr 17, 2018Hi, I did not manage to get it done in a single step. Splitting it into two steps works fine as follows:
vlan create
curl -svk -u admin:admin "https://localhost/mgmt/tm/net/vlan/" -H 'Content-Type: application/json' -POST -d '{"name": "", "tag": }' | python -m json.tool
vlan interface assign
curl -svk -u admin:admin "https://localhost/mgmt/tm/net/vlan/~Common~/interfaces" -H 'Content-Type: application/json' -X POST -d '{"name": "", "tagged": true}' | python -m json.tool
vlan interface delete
curl -svk -u admin:admin "https://localhost/mgmt/tm/net/vlan/~Common~/interfaces/" -X DELETE | python -m json.tool
vlan delete
curl -svk -u admin:admin "https://localhost/mgmt/tm/net/vlan/~Common~" -X DELETE | python -m json.tool
Cheers, Stephan
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
