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

API method "host.update" doen't unlink template

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.0.10
    • API (A)
    • None
    • Apache 2.4, PHP 7.0.22

      I want to unlink and clear a template from a host using the API method "host.update". According to the request and the response it should have worked, but looking at the host in the frontend the template is still linked.

      Request
      {
          "method": "host.update",
          "auth": "924ee0899f23cad9c57f09baf9e4aedd",
          "jsonrpc": "2.0",
          "id": 2,
          "params": {
              "hostid": "11597",
              "templateids_clear": [
                  "11383"
              ]
          }
      }
      Response
      {
          "result": {
              "hostids": [
                  "11597"
              ]
          },
          "jsonrpc": "2.0",
          "id": 2
      }

            sasha Alexander Vladishev
            pu Pascal Uhlmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: