API documentation Trigger object shows wrong type for triggerid property

XMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: 6.2.3
    • Component/s: 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

            Assignee:
            Zabbix Development Team
            Reporter:
            Rodrigo P
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: