THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

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

New Member
Posts: 11
8692     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: 317
8692     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: 11
8693     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
8693     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