-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
None
-
None
-
None
Using the py-zabbix api library which is passing the correct params, but the API seems to ignore triggerids
I've tried:
triggers = zapi.trigger.get( hostids=hosts_id, filter={ "templateids": "12345") } )
urllib2.Request(https://<url>/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "trigger.get", "params": {"hostids": ["<id>"], "filter": {"templateids": "<id>"}}, "id": "1", "auth": "********"})
I've tried:
triggers = zapi.trigger.get(
hostids=hosts_id,
templateids = str(template_trigger["templateid"])
)
urllib2.Request(https://<url>/api_jsonrpc.php, {"jsonrpc": "2.0", "method": "trigger.get", "params": {"hostids": ["<id>"], "templateids": "<id>"}, "id": "1", "auth": "********"})
I also tried this in postman with direct requests and in all cases I'm getting the entire list of triggers, not just the one specified as the templateids