Hi,
I know how to retrieve host inventory info for a given hostid via the API using PHP:
but I haven't found out how to retrieve the hostid for a given inventory alias?
TIA,
Wouter
I know how to retrieve host inventory info for a given hostid via the API using PHP:
Code:
$contacts = $api->hostGet(array(
'output' => 'shorten',
'filter' => array('hostid' => '10155',
'selectInventory' => array('contact', 'name', 'alias')
));
TIA,
Wouter