Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

API & Integration

Reply
Highlighted
Accepted Solution

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

Not applicable
Posts: 10
1960     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

Highlighted

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

Community Manager
Community Manager
Posts: 184
1960     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.

Highlighted

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

Not applicable
Posts: 10
1960     0

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

Highlighted

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

Authority
Posts: 25
1961     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 
Do you mean 

Recommended for You