-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.4.3
-
Sprint candidates
Steps to reproduce:
Send the following request to Zabbix API :
{ "jsonrpc": "2.0", "method": "host.get", "params": { "output": [ "hostid" ], "selectInheritedTags": "extend" }, "id": 1 }
Result:
{ "jsonrpc": "2.0", "result": [ { "hostid": "10084", "inheritedTags": [ [], [], [], [], [] ] } ], "id": 1 }
Expected:
{ "jsonrpc": "2.0", "result": [ { "hostid": "10084", "inheritedTags": [ { "tag": "class", "value": "software" }, { "tag": "target", "value": "server" }, { "tag": "target", "value": "zabbix" }, { "tag": "class", "value": "os" }, { "tag": "target", "value": "linux" } ] } ], "id": 1 }
Notes:
1. To have the right output (Expected), you have to specify `["tag", "value"]` for `selectInheritedTags` field.
2. The number of arrays returned by the API when using "extend" match the number of inherited tags