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

Documentation on API call host.get and similar is unclear about 'search' param

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Unsupported version
    • Icon: Minor Minor
    • None
    • 2.0.14, 2.2.8, 2.4.3
    • API (A), Documentation (D)
    • None

      After much trial and error, IRC support, and digging in the PHP, I was able to get host.get to work with an asterisk wildcard (I was initially trying a SQL wildcard, %), only while searchWildcardsEnabled was set to 1. This is rather unclear on the documentation.

      I would say that search without wildcards is essentially the same thing as "filter", so the additional boolean is probably unnecessary. If the SQL % wildcard doesn't work, this should probably be made clear.

      Of course, I don't know everything about the API and how it works. Is there a reason it is this way?

            Unassigned Unassigned
            trevor-sncr Trevor Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: