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

    Details

    • Team:
      Team D
    • Sprint:
      Sprint 46, Nov 2018, Sprint 47, Dec 2018, Sprint 48, Jan 2019
    • Story Points:
      1

      Description

      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".

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: