Ad Widget

Collapse

Host.update API not removing old host groups

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • angelosanramon
    Junior Member
    • Mar 2017
    • 2

    #1

    Host.update API not removing old host groups

    Hello,

    I am using host.update api to move a host from an old host group to a new one. In the documentation, the "group" parameter states: "Host groups to replace the current host groups the host belongs to". But, it seems that it's just adding the new host group and not removing the old group. When I ran the host.update API, the group list has the new group as well as the old one. My param looks like this:

    "params": {
    "hostid": "10111",
    "groups": ["8"],
    "status": 1
    }

    What am I missing? Any help is appreciated. We have Zabbix server version 3.0.7.

    Thanks
  • angelosanramon
    Junior Member
    • Mar 2017
    • 2

    #2
    Disregard. It's user error. The account I was using did not have read-write access permission to host group I am removing.

    Comment

    Working...