Forum Discussion
James_Thomson
Jul 08, 2014Employee
iControl REST curl command to create VLAN
If you have a CURL command to create a VLAN using iControl REST which has a name, tag, and an interface assigned, can you please post it here?
Here's a sample of what i'm looking for for a self IP cr...
devopsdd_183664
Feb 03, 2015Altostratus
Better late than never I suppose :). Subcollections can be a bit of a pain. You can create a vlan, assign it to an interface, and tag it in one shot like so:
curl -sk -u admin:admin -H "Content-type: application/json" -X POST -d '{"name":"external","tag":"2","interfaces": [{"name":"1.1","tagged":true}]}' https://192.168.153.140/mgmt/tm/net/vlan
This works for me in ver=11.6.0
- seamlessfireworkNov 14, 2023Cirrus
Worked for me. Thanks!
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