api:host:get

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
api:host:get [2011/08/09 07:46]
Eduards.Samersovs [Parameters]
api:host:get [2012/06/03 07:06]
zalex_ua added select_dhosts, select_dservices. fixes for ZBX-5117: groupOutput -> groupCount
Line 2: Line 2:
 Available since version: **1.8**\\ Available since version: **1.8**\\
 This function allows you to retrieve host details based on filtering options. This function allows you to retrieve host details based on filtering options.
-All parameters are optional. If parameter is set in query this otion counted as ON, except if parameter is equal to NULL.+All parameters are optional. If parameter is set in query this option ​counted as ON, except if parameter is equal to NULL.
  
 ====Parameters==== ====Parameters====
Line 40: Line 40:
 |**select_triggers**|//​string//​|Select host triggers| Values: shorten, refer, extend| |**select_triggers**|//​string//​|Select host triggers| Values: shorten, refer, extend|
 |**select_graphs**|//​string//​|Select host graphs| Values: shorten, refer, extend| |**select_graphs**|//​string//​|Select host graphs| Values: shorten, refer, extend|
 +|**select_dhosts**|//​string//​|Select host related discovery hosts | Values: shorten, refer, extend|
 +|**select_dservices**|//​string//​|Select host related discovery services | Values: shorten, refer, extend|
 |**select_applications**|//​string//​|Select host applications| Values: shorten, refer, extend| |**select_applications**|//​string//​|Select host applications| Values: shorten, refer, extend|
 |**select_macros**|//​string//​|Select host macros| Values: shorten, refer, extend| |**select_macros**|//​string//​|Select host macros| Values: shorten, refer, extend|
 |**select_profile**|//​string//​|Select host profile| Values: shorten, refer, extend| |**select_profile**|//​string//​|Select host profile| Values: shorten, refer, extend|
-|**countOutput**|//​integer//​|Count hosts, ​returned ​number of found hosts | | +|**countOutput**|//​integer//​|Count hosts, ​return the number of hosts found | | 
-|**groupOutput**|//​integer//​|Group result ​by passed ​IDs | |+|**groupCount**|//​integer//​|Return the number of results grouped ​by given IDs | |
 |**preservekeys**|//​integer//​|Return hash instead of array |Keys of hash are object IDs | |**preservekeys**|//​integer//​|Return hash instead of array |Keys of hash are object IDs |
 |**sortfield**|//​string//​|Sort by host field |Values: hostid,​host,​status,​dns,​ip | |**sortfield**|//​string//​|Sort by host field |Values: hostid,​host,​status,​dns,​ip |