Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel here.

API & Integration, DevOps,NetOps,SecOps


Multiple Object in Python

New Member
Posts: 1
2654     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: 181
2655     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