Ad Widget

Collapse

Zabbix API hostprototype.update not working after upgraded to 6.0.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vignesh
    Junior Member
    • Feb 2019
    • 1

    #1

    Zabbix API hostprototype.update not working after upgraded to 6.0.3

    Hi,

    We use a Zabbix API-based script to update the host prototype object tags and groupLinks for several hosts.
    After we upgrade the Zabbix version to 6.0.3 the same script is not working anymore.

    This really looks like a bug to me and I reported it to Zabbix https://support.zabbix.com/browse/ZBX-21035.
    Is anyone facing the same issue? Any workaround do you have?

    Here is the payload

    {
    "jsonrpc": "2.0",
    "method": "hostprototype.update",
    "params": {
    "tags": [
    {
    "tag": "MongoDB-pseudo-servers"
    }
    ],
    "hostid": hostid
    },
    "auth": authtoken,
    "id": 1
    }
    Here is the response

    {'error': {'code': -32602, 'data': 'Invalid parameter "/1": cannot update readonly parameter "tags" of inherited object.', 'message': 'Invalid params.'}, 'id': 1, 'jsonrpc': '2.0'}
Working...