Reply
Accepted Solution

Possible to find networks that do not match an extensible attribute using the WAPI?

[ Edited ]
Authority
Posts: 30
1713     0

I'm tring to find Networks that matches BranchID=XYZ, Solution=Client, Solution!=Mobile using the v2.7 WAPI and curl from a Linux server. Is this possible? 

 

I tried something like this:

 

https://infoblox.our.domain.com/wapi/v2.7network?*BranchID:=xyz\&*Solution:=Client\&*Solution~=\(?\!Mobile\)

 

But it looks like "(?! ) is not supported?

 

Is there a way to pull this off, or do I basically need to pull the extensible attributes and figure out what to do after the fact?

Re: Possible to find networks that do not match an extensible attribute using the WAPI?

MRichard Community Manager
Community Manager
Posts: 134
1714     0

Are "Client" and "Mobile" full strings, in the EA values, or are these substrings of the EA values?

 

If they're full strings you can avoid the whole regex question by doing exact positive or negative matches.  For example:

 

https://infoblox.our.domain.com/wapi/v2.7network?*BranchID:=xyz?*Solution:=Client&*Solution!=Mobile

Re: Possible to find networks that do not match an extensible attribute using the WAPI?

Authority
Posts: 30
1714     0

Thanks! I tried != before, but maybe I forgot to escape it when shelling out to curl. That worked. I wish the WAPI guide had actual examples showing a search like this!!

Showing results for 
Search instead for 
Do you mean 

Recommended for You