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

Exclude DNS read-only view (AD) from API calls

New Member
Posts: 2
6989     0

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!

Re: Exclude DNS read-only view (AD) from API calls

Moderator
Moderator
Posts: 315
6989     0

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:

 

https://community.infoblox.com/t5/API-Integration/Possible-to-find-networks-that-do-not-match-an-ext...

 

Re: Exclude DNS read-only view (AD) from API calls

New Member
Posts: 2
6989     0

That's a great idea!

 

Thank you very much!

Showing results for 
Search instead for 
Did you mean: 

Recommended for You