Reply

Search networks tied to vlan

Techie
Posts: 3
4635     1

What's the simplest way to provide a vlan ID to retrieve any and all networks associated with the vlan? I really don't want to search by extattr since they seem to be inconsistent. 

 

https://grid-master/wapi/v2.10/network?network_view=default&_return_fields%2b=extattrs&*Vlan%20Id=3180&comment~=Ansible
^^^ this is the mess I have to do now. 
I'd rather say:
https://grid-master/wapi/v2.10/vlan?_return_fields%2B=networks
 
Any suggestions?

Re: Search networks tied to vlan

Moderator
Moderator
Posts: 315
4635     1

use the "assigned_to" field

 

for example

 

https://grid-master/wapi/v2.10/vlan?_return_fields%2b=assigned_to

 

It will return a list of references to each of the networks associated with that VLAN.

Re: Search networks tied to vlan

Techie
Posts: 3
4636     1

I'll try that out. I really love undocumented features... assigned_to shows up nowhere in this doc.

 

https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf

Re: Search networks tied to vlan

Adviser
Posts: 181
4636     1

Hi,

 

As mentioned in the document, this document only covers the most common use cases. It does not cover all the APIs available. For any additional information, please refer to the WAPI documentation available at https://<grid_IP>/wapidoc

 

Regards,

Krishna

Showing results for 
Search instead for 
Did you mean: 

Recommended for You