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

Confusing interfaces parameter for proxy.create and proxy.update

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.0, 2.1.8
    • 2.1.0
    • API (A)

      The fact that the parameter name is plural and it accepts an array of objects may trick someone into believing that a proxy can have multiple interfaces. The parameter should be called "interface" and it should accept a single interface object. Keep in mind, that the "interfaces" parameter must still be supported for backward compatibility.

      Proxy create must look like:
      {
      "host": "bbb",
      "status": 6,
      "hosts": {},
      "interface":

      { "hostid": 10164, "ip": "127.0.0.10", "dns": "localhost", "useip": 1, "port": "10051" }

      }

      Proxy update must look like:
      {
      "host": "aaa",
      "status": 6,
      "hosts": {},
      "interface":

      { "interfaceid": 56, "hostid": 10164, "ip": "127.0.0.10", "dns": "localhost", "useip": 1, "port": "10051" }

      ,
      "proxyid": 10164
      }

            Unassigned Unassigned
            jelisejev Pavels Jelisejevs (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: