- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Exclude DNS read-only view (AD) from API calls
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2019 09:39 AM
Is there any way to exclude a specific DNS view from API calls? Exclude read-only data that's not directly on Infoblox ?
We've added a read-only AD view for delegated zones to a Microsoft server and now my API calls return data from that AD view, which I don't want/need as I can't do anything with it anyway.
My actual call looks like this:
/record:a?name~=str_to_search
So the excluding view would look like something like this (I know I can't use '!', it's just an example of what I would like to do):
/record:a?name~=str_to_search&view!=ActiveDirectory
I know I could specify a view with my call with &view=view1 so the returned data will be only from that one view, but I'd rather not do that as it would mean making multiple calls (1 for each view) for something I used to do with one. I want my query to return everything that's on Infoblox, but only the data from the views that are actually on Infoblox.
If I can't exclude a view, maybe there's a way to query for multiple views in a single call?
Something like:
/record:a?name~=str_to_search&view=view1|view=view1
If all else fails I'll just sort the data on my end when it comes back but having only the needed data coming back would be better for me.
Thank you!
Solved! Go to Solution.
Re: Exclude DNS read-only view (AD) from API calls
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2019 06:11 PM
Not directly, as the view search type is only an exact match.
You could instead define an extensible attribute, give a value for all the MS zones, and then earch for zones that don't match that EA value.
Here's an example, for a network search:
Re: Exclude DNS read-only view (AD) from API calls
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2019 12:37 PM
That's a great idea!
Thank you very much!