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

API template.get return wrong formated result

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.3, 1.8.4rc1
    • Fix Version/s: 1.8.4
    • Component/s: API (A)
    • Labels:
      None

      Description

      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}.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: