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

API HostInterface expecting details object

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.2 (plan)
    • 5.0.0
    • Documentation (D)
    • Sprint 64 (May 2020)

      According to documentation https://www.zabbix.com/documentation/current/manual/api/reference/hostinterface/object details object in not required. However, line 393 in https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/classes/api/services/CHostInterface.php is checking object existence.

      If I'm trying to reproduce host create example from https://www.zabbix.com/documentation/current/manual/api/reference/host/create but I'm getting:

      {"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Incorrect arguments passed to function."},"id":1}"
      

            martins-v Martins Valkovskis
            ekrajnak Blažej Krajňák
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: