API to Reserve/Assign VLAN ID

Posts: 1
935     0

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.


Re: API to Reserve/Assign VLAN ID

Posts: 177
936     0



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

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin