-
Incident report
-
Resolution: Cannot Reproduce
-
Major
-
None
-
2.0.0
-
None
-
DM environment
Hi,
I know the documentation about the API is not yet finished but I'm struggling about the interfaceid.
Basically I need to get the interfaceid from a host to be able to add an trigger.
The question is how.
Regarding the current API doc I assume that you can retrieve the interfaceid of a given host with host.get()
Unfortunatly the return construct does not contain this field.
RETURN VALUE
{ 'status' => '1', 'maintenances' => [], 'lastaccess' => '0', 'ipmi_errors_from' => '0', 'hostid' => '200200000010084', 'ipmi_available' => '0', 'disable_until' => '0', 'proxy_hostid' => '0', 'error' => '', 'jmx_available' => '0', 'jmx_errors_from' => '0', 'snmp_error' => '', 'maintenance_from' => '0', 'snmp_disable_until' => '0', 'jmx_disable_until' => '0', 'ipmi_authtype' => '-1', 'available' => '0', 'ipmi_username' => '', 'jmx_error' => '', 'snmp_available' => '0', 'name' => 'Zabbix server', 'ipmi_error' => '', 'maintenanceid' => '0', 'host' => 'Zabbix server', 'errors_from' => '0', 'ipmi_password' => '', 'snmp_errors_from' => '0', 'ipmi_privilege' => '2', 'ipmi_disable_until' => '0', 'maintenance_type' => '0', 'maintenance_status' => '0' }]
- is duplicated by
-
ZBX-5244 Can get() host details Zabbix API c
-
- Closed
-