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

How to get the network an IP is in

Techie
Posts: 3
327     1

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: 25
327     1

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

Techie
Posts: 3
327     1

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

Community Manager
Community Manager
Posts: 178
328     1

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