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

API template.get return wrong formated result

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.4
    • 1.8.3, 1.8.4rc1
    • API (A)
    • None

      I send to API next parametrs: {"params": {"filter": {"host": "nanostation5_proto"}}, "jsonrpc": "2.0", "method": "template.get", "auth": "auth", "id": 2}
      Ang get next answer :{'jsonrpc': '2.0', 'result': {'11114': {'hostid': '11114', 'templateid': '11114'}}, 'id': 2}, but expected {'jsonrpc': '2.0', 'result': [

      {'hostid': '11114', 'templateid': '11114'}

      ], 'id': 2}.

            Unassigned Unassigned
            gescheit gescheit
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: