SSO Login is being implemented on this site. Existing users: Your existing password must be reset the first time you login using SSO. Click here to reset your password first before login. Your new username will be your email.

API & Integration, DevOps,NetOps,SecOps

Reply

How to get the network an IP is in

Techie
Posts: 3
294     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: 19
295     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

Re: How to get the network an IP is in

Techie
Posts: 3
295     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

Community Manager
Community Manager
Posts: 171
295     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