XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.2.1
    • API (A)
    • Zabbix Server 4.2.1
      Zabbix Proxy 4.2.1

      1. API explanation: please add better explanation for API, as sometimes it's not easy to guess what should be in parameters.
      2. API response warnings: If request is correct, but, for example, parameter "proxy_hostid" is outside of parameters array, API will just omit it without notifying user that parameter is omitted. For example, in this JSON parameter "proxy_hostid" will be omitted without any warnings:
      { 
      "jsonrpc":"2.0",
      "method":"host.create",
      "params":{ 
      "host":"Some-host-name",
      "interfaces":[ 
      { 
      "type":1,
      "main":1,
      "useip":1,
      "ip":"127.0.0.1",
      "dns":"",
      "port":"10050"
      }
      ],
      "groups":[ 
      { 
      "groupid":"17"
      }
      ],
      "templates":[ 
      { 
      "templateid":"10586"
      }
      ],
      "macros":[ 
      { 
      "macro":"{$REAL_DOMAIN_NAME}",
      "value":"example.com"
      }
      ]
      },
      "proxy_hostid":"10583",
      "auth":"some-auth-string",
      "id":1
      }

            sasha Alexander Vladishev
            viadmin Bendyna Vitalii
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: