Details
-
Problem report
-
Status: Confirmed
-
Major
-
Resolution: Unresolved
-
6.2.3
-
None
-
None
Description
Trying to use API method trigger.get using parameter search [1], as example below:
{ "output": ["triggerid", "description"], "search": {"triggerid": "88"}, "sortfield": "triggerid", "sortorder": "ASC", "limit": 100 }
Filter using triggerid field with search parameter doesn't work and all data is returned, regardless of the filter applied for triggerid.
Documentation says search parameter can be only used with string and text fields:
Trigger object documentation [2] says triggerid field is type string, but actually when looking at database structure triggerid is a bigint.
Please check documentation for triggerid field type.
[1]https://www.zabbix.com/documentation/current/en/manual/api/reference_commentary
[2]https://www.zabbix.com/documentation/current/en/manual/api/reference/trigger/object