Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to list the networks that have a null or empty EA value

New Member
Posts: 7
7294     0

I have created a customized extensible attribute named "VLAN".

 

Now I want to use WAPI to list all the networks that don't have VLAN attribute or have a null/empty VLAN.

 

just as the same effect as the filter below, how to build the WAPI call?

 

 

nullEA.PNG

Re: How to list the networks that have a null or empty EA value

Moderator
Moderator
Posts: 289
7295     0

Objects (such as networks) won't have an empty or null EA value.  Instead the EA will not be defined for the network.

 

Consider if there is a large number of EAs defined in the grid, we don't want to automatically store an empty value for all possible EAs.

 

However there doesn't seem to be a way to filter for networks where a specific EA is not defined.

 

Instead you would need to get the full list and parse on your own for networks that don't have the VLAN EA defined.

Re: How to list the networks that have a null or empty EA value

New Member
Posts: 7
7295     0

I hope there will be a better way in future WAPI versions

Re: How to list the networks that have a null or empty EA value

Authority
Posts: 14
7295     0

how to check if the EA is empty?

UriServer1 = "https://ipman/wapi/v2.6.1/" & propertyname & "?" & "_return_fields=extattrs"
Dim EA = rest.Invoke(UriServer1)
Dim releases = JObject.Parse(EA)
If releases("exattrs") IsNot {} Then

msg("")

 

is this a correct way?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You