[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
Here is example from documentation https://www.zabbix.com/documentation/current/en/manual/api/reference/host/get#retrieving-linked-templates

{
           "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.
I close it as incomplete and won't fix.

Best regards,
Andrei

Comment by Evgeny Semerikov [ 2023 Jul 13 ]

Hello, Andrey!

Thanks for help, this is really my mistake

Generated at Sat Aug 02 09:51:15 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.