Host removal does not work (host.delete and host.massremove)

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Critical
    • None
    • Affects Version/s: 3.0.5
    • Component/s: API (A)

      It is impossible to remove host using documentation:

      curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"user.login", "params":{"user":"Admin", "password":"zabbix"},"auth": null,"id":0}' http://10.211.55.82/api_jsonrpc.php
      
      curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.get", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php
      
      curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.delete", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php
      
      curl -i -X POST -H 'Content-Type:application/json' -d'{"jsonrpc": "2.0", "method":"host.massremove", "params":{"hostids": [10105]},"auth": "50d108274c70ad23ef4b519b37ef9dcf","id":0}' http://10.211.55.82/api_jsonrpc.php
      

      host.delete error: No permissions to referred object or it does not exist!
      host.massremove no errors: "result":

      {"hostids":[10105]}

      but host still in the system.

            Assignee:
            Unassigned
            Reporter:
            Alexey Pustovalov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: