[ZBX-23091] API host.get unexpected parameter "output" Created: 2023 Jul 12 Updated: 2023 Jul 13 Resolved: 2023 Jul 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | API (A) |
Affects Version/s: | 6.4.3 |
Fix Version/s: | None |
Type: | Problem report | Priority: | Trivial |
Reporter: | Evgeny Semerikov | Assignee: | Andrei Gushchin (Inactive) |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
Hello, when I'm trying to execute host.get method, faced with error: Invalid parameter "/": unexpected parameter "output". Request is: { "auth": "blablabla", "method": "host.get", "output": "extend", "params": { "filter": { "name": [ "myhostname" ] } }, "id": 1, "jsonrpc": "2.0" } If I remove "output" parameter request executed successfully, but with huge output. |
Comments |
Comment by Andrei Gushchin (Inactive) [ 2023 Jul 13 ] |
Hello Evgeny, This looks like misconfiguration { "jsonrpc": "2.0", "method": "host.get", "params": { "output": ["hostid"], "selectParentTemplates": [ "templateid", "name" ], "hostids": "10084" }, "id": 1 } As you can see output should included in prams array, not outside on high level. Best regards, |
Comment by Evgeny Semerikov [ 2023 Jul 13 ] |
Hello, Andrey! Thanks for help, this is really my mistake |