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

API host.update bug when using doubledigit groupid

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.0.2, 2.0.4
    • API (A)
    • None
    • Centos 5.8

      When using API to update the hosts hostgroup

      {
      "jsonrpc": "2.0",
      "method": "host.update",
      "params": {
      "hostid": "10137",
      "groups":

      {"groupid": "10"}

      },
      "auth": "xxxxxxxxxxxxxxxxxx",
      "id": 1
      }

      It works great with singledigit groupid's but doesnt work with doubledigit group ids.

      Doubledigit request response is:

      {
      "jsonrpc": "2.0",
      "error":

      { "code": -32500, "message": "Application error.", "data": "No permissions to referred object or it does not exist!" }

      ,-
      "id": 1
      }

            Unassigned Unassigned
            denyboy Kreso Denis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: