>>> zbx.host.create({"host": "host","interfaces":[{"type": 1,"main": 1,"useip":1,"ip": "127.0.0.1","dns": "","port": 10050}],"groups": [{ "groupid": "10" }],"templates
"templateid": "10001" }],"inventory": {"macaddress_a": "test"}})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 207, in call_wrapper
return self.server_proxy.call(method, params=params)
File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 159, in call
return self._call(method, params=params, auth=self._auth_token)
File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 167, in _call
rpc_response = loads(content)
File "/usr/lib/python2.7/site-packages/zabbix_client-0.1.0-py2.7.egg/zabbix_client/api_wrapper.py", line 104, in loads
data=data)
zabbix_client.exceptions.JSONRPCError: Code: -32602, Message: Invalid params., Data: Host cannot have more than one default interface of the same type.