Now Available - Forrester's Total Economic Impact study. Discover millions in cost savings, unlock IT efficiency gains, and explore why NIOS DDI is a game changer. Get Your Copy here.

API & Integration, DevOps,NetOps,SecOps

Reply

How to get the network an IP is in

New Member
Posts: 3
1193     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: 38
1193     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

New Member
Posts: 3
1194     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

Moderator
Moderator
Posts: 267
1194     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