- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Possible to find networks that do not match an extensible attribute using the WAPI?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 05:42 PM - edited 01-09-2019 05:43 PM
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?
Solved! Go to Solution.
Re: Possible to find networks that do not match an extensible attribute using the WAPI?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 07:20 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2019 05:44 AM
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!!