Zabbix Documentation 3.2

3.04.05.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.24.4Guidelines

User Tools

Site Tools


manual:api:reference: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
Previous revision
Last revision Both sides next revision
manual:api:reference:host:get [2014/09/30 12:54]
127.0.0.1 external edit
manual:api:reference:host:get [2017/10/19 05:48]
martins-v removing a redundant parameter from example
Line 42: Line 42:
 ^  ||| ^  |||
 |selectGroups|query|Return the host groups that the host belongs to in the ''​groups''​ property. | |selectGroups|query|Return the host groups that the host belongs to in the ''​groups''​ property. |
-|selectApplications|query|Return the applications from the host in the ''​applications''​ property. \\ \\ Support ​''​count''​. |+|selectApplications|query|Return the applications from the host in the ''​applications''​ property. \\ \\ Supports ​''​count''​. |
 |selectDiscoveries|query|Return the low level discoveries from the host in the ''​discoveries''​ property. \\ \\ Supports ''​count''​. | |selectDiscoveries|query|Return the low level discoveries from the host in the ''​discoveries''​ property. \\ \\ Supports ''​count''​. |
-| selectDiscoveryRule | query | Return the LLD rule that created the host in the ''​discoveryRule''​ property. |+|selectDiscoveryRule | query | Return the LLD rule that created the host in the ''​discoveryRule''​ property. |
 |selectGraphs|query|Return the graphs from the host in the ''​graphs''​ property. \\ \\ Supports ''​count''​. | |selectGraphs|query|Return the graphs from the host in the ''​graphs''​ property. \\ \\ Supports ''​count''​. |
-| selectHostDiscovery | query | Return the host discovery object in the ''​hostDiscovery''​ property. \\ \\ The host discovery object links a discovered host to a host prototype or a host prototypes to an LLD rule and has the following properties: \\ ''​host''​ - //​(string)//​ host of the host prototype; \\  ''​hostid''​ - //​(string)//​ ID of the discovered host or host prototype; \\ ''​parent_hostid''​ - //​(string)//​ ID of the host prototype from which the host has been created; \\ ''​parent_itemid''​ - //​(string)//​ ID of the LLD rule that created the discovered host; \\ ''​lastcheck''​ - //​(timestamp)//​ time when the host was last discovered; \\ ''​ts_delete''​ - //​(timestamp)//​ time when a host that is no longer discovered will be deleted. |+|selectHostDiscovery | query | Return the host discovery object in the ''​hostDiscovery''​ property. \\ \\ The host discovery object links a discovered host to a host prototype or a host prototypes to an LLD rule and has the following properties: \\ ''​host''​ - //​(string)//​ host of the host prototype; \\  ''​hostid''​ - //​(string)//​ ID of the discovered host or host prototype; \\ ''​parent_hostid''​ - //​(string)//​ ID of the host prototype from which the host has been created; \\ ''​parent_itemid''​ - //​(string)//​ ID of the LLD rule that created the discovered host; \\ ''​lastcheck''​ - //​(timestamp)//​ time when the host was last discovered; \\ ''​ts_delete''​ - //​(timestamp)//​ time when a host that is no longer discovered will be deleted. |
 |selectHttpTests|query|Return the web scenarios from the host in the ''​httpTests''​ property. \\ \\ Supports ''​count''​. | |selectHttpTests|query|Return the web scenarios from the host in the ''​httpTests''​ property. \\ \\ Supports ''​count''​. |
 |selectInterfaces|query|Return the host interfaces in the ''​interfaces''​ property. \\ \\ Supports ''​count''​. | |selectInterfaces|query|Return the host interfaces in the ''​interfaces''​ property. \\ \\ Supports ''​count''​. |
Line 89: Line 89:
     "​method":​ "​host.get",​     "​method":​ "​host.get",​
     "​params":​ {     "​params":​ {
-        "​output":​ "​extend",​ 
         "​filter":​ {         "​filter":​ {
             "​host":​ [             "​host":​ [
Line 139: Line 138:
             "​jmx_error":​ "",​             "​jmx_error":​ "",​
             "​name":​ "​Zabbix server",​             "​name":​ "​Zabbix server",​
-            "​description":​ "The Zabbix monitoring server."​+            "​description":​ "The Zabbix monitoring server.", 
 +            "​tls_connect":​ "​1",​ 
 +            "​tls_accept":​ "​1",​ 
 +            "​tls_issuer":​ "",​ 
 +            "​tls_subject":​ "",​ 
 +            "​tls_psk_identity":​ "",​ 
 +            "​tls_psk":​ ""
         },         },
         {         {
Line 173: Line 178:
             "​jmx_error":​ "",​             "​jmx_error":​ "",​
             "​name":​ "Linux server",​             "​name":​ "Linux server",​
-            "​description":​ ""​+            "​description": "",​ 
 +            "​tls_connect":​ "​1",​ 
 +            "​tls_accept":​ "​1",​ 
 +            "​tls_issuer":​ "",​ 
 +            "​tls_subject":​ "",​ 
 +            "​tls_psk_identity":​ "",​ 
 +            "​tls_psk": ""​
         }         }
     ],     ],
Line 325: Line 336:
 ==== See also ==== ==== See also ====
  
-  * [[getobjects|host.getobjects]] 
   * [[manual:​api:​reference:​hostgroup:​object#​host_group|Host group]]   * [[manual:​api:​reference:​hostgroup:​object#​host_group|Host group]]
   * [[manual:​api:​reference:​template:​object#​template|Template]]   * [[manual:​api:​reference:​template:​object#​template|Template]]
   * [[manual:​api:​reference:​usermacro:​object#​hosttemplate_level_macro|User macro]]   * [[manual:​api:​reference:​usermacro:​object#​hosttemplate_level_macro|User macro]]
   * [[manual:​api:​reference:​hostinterface:​object#​host_interface|Host interface]]   * [[manual:​api:​reference:​hostinterface:​object#​host_interface|Host interface]]
 +
 ==== Source ==== ==== Source ====
  
-CHost::​get() in //​frontends/​php/​api/​classes/​CHost.php//​.+CHost::​get() in //​frontends/​php/​include/classes/​api/​services/​CHost.php//​.