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

Possible to change type for used host interface by API

XMLWordPrintable

    • Sprint 46, Nov 2018, Sprint 47, Dec 2018, Sprint 48, Jan 2019
    • 1

      Steps to reproduce:

      1. Create host with one Agent interface
      2. Create item that uses this interface
      3. Make following API call:
        {
            "jsonrpc": "2.0",
            "method": "host.update",
            "params": {
                "hostid": "host_id_here",
                "status": 0,
                "interfaces": [
                    {
                        "type": 2,
                        "interfaceid": "interface_id_here",
                        "main": 1,
                        "useip": 1,
                        "ip": "127.0.0.1",
                        "dns": false,
                        "port": 10050
                    }
                ]
            },
            "auth": "auth_code_here",
            "id": 1
        }

      Result: Host is successfully updated. By opening item, it is seen, that there are no interfaces assigned to this item.
      Expected: Error message - Interface is linked to item "X" on "Y".

            gcalenko Gregory Chalenko
            vmurzins Valdis Murzins
            Team D
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: