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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.0, 2.1.8
    • Component/s: API (A)
    • Labels:

      Description

      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
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: