Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

API query filter by logical "OR"

[ Edited ]
Member
Posts: 2
2128     0

I'm using https://pypi.org/project/infoblox-client/ Python library. I want to get all objects that have either one given value or another. How could I do that?

 

My current filter is the following. I would like now to also get DMZ items, along side Internal ones, but not others (ie. not External ones).

 

'*Range Type': 'Internal'

 

Thanks!

Re: API query filter by logical "OR"

Superuser
Posts: 115
2129     0

 

'*SifLoc~': 'Lab|Home'

That's what I use to get all networks Location that is Lab and Home

 

10.10.1.0/24<--Lab
10.10.3.0/24<--Lab
10.10.7.0/24 <--SifLoc = Home 

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

https://sifbaksh.com

Re: API query filter by logical "OR"

Member
Posts: 2
2129     0

Thanks for the hint SBaksh, looks great! By any chance do you know where I can find some documentation that explains these kinds of requests? I have a hard time finding it. Thank you!

Re: API query filter by logical "OR"

Superuser
Posts: 115
2129     0

I read the code and have started writing some blog articles around this that I will start posting starting this Wednesday.

 

www.sifbaksh.com

 

 

Let me know what kind of stuff you are interested in learning as well.

 

 

Follow me on LinkedIn: https://www.linkedin.com/in/sifbaksh
Twitter: https://twitter.com/sifbaksh

https://sifbaksh.com
Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin