-
Problem report
-
Resolution: Unresolved
-
Trivial
-
7.4.3
-
S25-W44/45, S25-W46/47, S25-W48/49
-
0.5
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
- caused by
-
ZBXNEXT-9827 Host Wizard
-
- Closed
-