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

excessive data returned to template.get

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 2.1.0
    • None
    • API (A)
    • None
    • 1.8.5rc1

      template.get returns excessive and confusing output of duplicate hostid+templateid values.

      host.get request :

      {"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"host.get","id":19,"params":{},"jsonrpc":"2.0"}

      {"jsonrpc":"2.0","result":[

      {"hostid":"10017"}

      ,

      {"hostid":"10054"}

      ,

      {"hostid":"10055"}

      ,

      {"hostid":"10056"}

      ,

      {"hostid":"10051"}

      ],"id":19}

      template.get request :

      {"auth":"4e1863827e2068815f6bdcfbea290bb2","method":"template.get","id":20,"params":{},"jsonrpc":"2.0"}

      {"jsonrpc":"2.0","result":[

      {"hostid":"10001","templateid":"10001"}

      ,

      {"hostid":"10002","templateid":"10002"}

      ,

      {"hostid":"10003","templateid":"10003"}

      ,... (trimmed)

      should not.

            oleg.egorov Oleg Egorov (Inactive)
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: