zabbix-tools / go-zabbix

Go bindings for the Zabbix API
GNU General Public License v2.0
106 stars 70 forks source link

hosts.get #32

Open encircles opened 4 years ago

encircles commented 4 years ago

How do I get the SelectInterfaces in the results?

user340 commented 4 years ago

Hello @encircles ,

Host object has no "SelectInterfaces" property. https://www.zabbix.com/documentation/2.2/manual/api/reference/host/object

But you can use same name property to host.get request parameter. https://www.zabbix.com/documentation/2.2/manual/api/reference/host/get#parameters

Are you want to get host interface information by host ID or item ID? If so, you can use hostinterface.get API. Unfortunately, this API is not implemented by go-zabbix yet. https://www.zabbix.com/documentation/2.2/manual/api/reference/hostinterface/get#parameters