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

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

[ Edited ]
Authority
Posts: 7
5729     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?

Moderator
Moderator
Posts: 321
5730     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: 7
5730     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 
Did you mean: 

Recommended for You