Netmri python API problem

Posts: 15
2459     0


I would like to run a CSS script using Netmri Python API,


here an extract of the python script on my linux machine.



from infoblox_netmri.client import InfobloxNetMRI


client = InfobloxNetMRI(


# get Script broker
script_broker = client.get_broker('Script')


# Run script

job_id ='Script-Null',device_ids=[83,99])



the error is the following:

Traceback (most recent call last):
  File "./", line 50, in <module>
    job_id ='Script-Null',device_ids=[83,99])
  File "/usr/lib/python3.6/site-packages/infoblox_netmri-", line 1350, in run
    return self.api_request(self._get_method_fullname("run"), kwargs)
  File "/usr/lib/python3.6/site-packages/infoblox_netmri-", line 27, in api_request
    if class_name in data:
TypeError: argument of type 'NoneType' is not iterable


What is wrong, in ?


I tried script_broker.index(name='Script-Null') and it work.


Re: Netmri python API problem

Posts: 15
2460     0

J got the problem. The user I was using to run the Job didn't had a min Role to be able to run Jobs !!

Re: Netmri python API problem

Posts: 1
2460     0

 Enables execution of RESTful API calls on the NetMRI via Python.  HTTP and HTTPS Execute an arbitrary method. 


Showing results for 
Search instead for 
Did you mean: 

Recommended for You