Forum Discussion
Apr 17, 2018
Hi, 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