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


Multiple Object in Python

Posts: 1
1863     0



I need help with one case. I would like to get all hosts from some network where i have name of this network.


I work with Python. I also see that in infoblox is option to use multiple object method but i dont know how to use it with Python:/


some example:


curl -k -u admin:infoblox -H ‘content-type:application/json’ -X POST “” – d ‘[{“method”: “STATE:ASSIGN”,”data”:{“member_name”:”member1.localdomain”}},{“method”:”GET”,”object”: “member:dhcpproperties”,”data”: {“host_name”:”##STATE:member_name:##”},”assign_state”: {“host_ref”: “_ref”},”enable_substitution”: true,”discard”: true},{ “method”: “PUT”, “object”: “##STATE:host_ref:##”,”enable_substitution”: true,”data”: {“enable_dhcp”:true}},{“method”: “STATE: DISPLAY”}]’


how to transfer this to: 


data = {
resp = requests.get(link,params=data, auth = ("login","pass"),verify=False)


It will be realy helpfull if anyone could give me any of example how to use this method.



Best regards,


Re: Multiple Object in Python

Posts: 179
1864     0



Could you please try this and see if it works for your specific request?

import requests
requests.packages.urllib3.disable_warnings() # Disable SSL warnings in requests #
url = ""
payload = "[{\"method\": \"GET\",\"object\": \"network\",\"data\": {\"name\":\"ABC\"},
headers = {'content-type': "application/json"}
response = requests.request("POST", url, auth=('uname', 'pwd'), data=payload, headers=headers,



Showing results for 
Search instead for 
Did you mean: 

Recommended for You