- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
API to Reserve/Assign VLAN ID
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2019 11:09 PM
Hi community,
We are using func:nextavailablevlanid to retrieve next available VLAN ID.
Upon receiving the VLAN ID, we would like to set the VLAN ID status to either Assigned / Reserved. May I know what would the command be for such use case?
Thank you.
JC
Re: API to Reserve/Assign VLAN ID
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2019 03:32 AM
Hi,
You can create a VLAN entry on the next available VLAN as follows:
curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.11/vlan?_return_fields%2B=id,name&_return_as_object=1" -d '{"id":"func:nextavailablevlanid:vlanview/ZG5zLnZsYW5fdmlldyR0ZXN0LjEwLjIw:test/10/20","name": "next-vlan","parent": "vlanview/ZG5zLnZsYW5fdmlldyR0ZXN0LjEwLjIw:test/10/20","reserved":true,"contact":"879220","department":"ng"}'
Thanks and Regards,
Krishna Vasudevan
Re: API to Reserve/Assign VLAN ID
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 08:44 PM
Hi Krishna,
Thanks a lot for your helpful post. However, we are in a situation where we created the VLAN ranges via API calls. Is it possible to reserve in the process of VLAN range creation e.g. 1st 2 VLANs as reserved?
Regards
Tarik