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

How to get the network an IP is in

New Member
Posts: 3
2380     0

Hi all,

Im new to Infoblox and im trying to get the network a fixed IP is within. Heres what im working with:

r = requests.get("https://" + app.config['INFOBLOX_HOST'] + "/wapi/v2.0/search?address="+ip, auth=(app.config['INFOBLOX_USER'], app.config['INFOBLOX_PASS']))
I get the error AdmConProtoError: Unknown argument/field: 'address'

Re: How to get the network an IP is in

Superuser
Posts: 38
2380     0

Hey,

 

Try using wapi version 2.2 or above and try running it. I am assuming it doesn't work with lower versions.

 

Shukran

Shukran

Re: How to get the network an IP is in

New Member
Posts: 3
2380     0

I managed to get it working using the API: 

"https://" + 'INFOBLOX_HOST' + "/wapi/v2.0/fixedaddress?_return_fields%2B=mac&mac="+mac
Sadly using anything other than 2.0 isnt possible at the moment

Re: How to get the network an IP is in

Moderator
Moderator
Posts: 321
2380     0

I recommend always using the highest expected API version.  For example, today 8.5.x is the oldest supported NIOS version.  8.5.0 supports API versions 2.11 and up.  So assuming you're writing code to be used on a currently supported grid, you can use v2.11 for all your API calls.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You