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

Search of hostgroups by name using the API

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.2.4
    • API (A)

      Steps to reproduce:

      Hi all,

      I'm trying to do a search of hostgroups by name using the API. I've not having any luck as the API seems to return all hostgroups. the JSON request I'm generating looks like this

      {'jsonrpc': '2.0', 'method': 'hostgroup.get', 'params': {'output': ['groupids', 'name'], 'search': {'name': '*Istanbul'}, 'excludeSearch': 'flase', 'searchWildcardsEnabled': 'true'}, 'id': 11, 'auth': 'xxx'}

      I find this case ,but it is not resloved https://support.zabbix.com/browse/ZBX-4392
      Any ideas, or an example?

       

            Unassigned Unassigned
            WytheNet WytheNet
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: