Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21959

API documentation Trigger object shows wrong type for triggerid property

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.2.3
    • Documentation (D)
    • None

      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

            zabbix.dev Zabbix Development Team
            ropesca Rodrigo P
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: