Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

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

New Member
Posts: 7
5350     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: 191
5350     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
5351     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
5351     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