Zabbix Documentation 2.0

2.23.04.04.2 (current)In development:4.4 (devel)Unsupported:1.82.02.43.23.4

User Tools

Site Tools


manual:appendix:api:host:massadd

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
manual:appendix:api:host:massadd [2012/10/05 14:23]
Pavels [Description] changed parameter name
manual:appendix:api:host:massadd [2019/01/28 14:49] (current)
sasha <code js> => <code java>
Line 15: Line 15:
 ^ Parameter ^ Type ^ Description ^ ^ Parameter ^ Type ^ Description ^
 | **hosts** \\ (required) | object/​array | Hosts to be updated. \\ \\ The hosts must have the ''​hostid''​ property defined. | | **hosts** \\ (required) | object/​array | Hosts to be updated. \\ \\ The hosts must have the ''​hostid''​ property defined. |
-| groups | object/​array | Host groups to add to all the hosts. \\ \\ The host groups must have the ''​groupid''​ property defined. ​ | +| groups | object/​array | Host groups to add to the given hosts. \\ \\ The host groups must have the ''​groupid''​ property defined. ​ | 
-| interfaces | object/​array | Host interfaces to be created for all the hosts. | +| interfaces | object/​array | Host interfaces to be created for the given hosts. | 
-| macros | object/​array | User macros to be created for all the hosts. | +| macros | object/​array | User macros to be created for the given hosts. | 
-| templates | object/​array | Templates to link to all the hosts. \\ \\ The templates must have the ''​templateid''​ property defined. |+| templates | object/​array | Templates to link to the given hosts. \\ \\ The templates must have the ''​templateid''​ property defined. |
  
 ==== Return values ==== ==== Return values ====
Line 31: Line 31:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 61: Line 61:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 75: Line 75:
 ==== See also ==== ==== See also ====
  
-  * [[2.0:​manual:​appendix:​api:​host:​update|host.update]] +  * [[update|host.update]] 
-  * [[2.0:manual:​appendix:​api:​hostgroup:​definitions#​object_details|Host group]] +  * [[manual:​appendix:​api:​hostgroup:​definitions#​object_details|Host group]] 
-  * [[2.0:manual:​appendix:​api:​template:​definitions#​object_details|Template]] +  * [[manual:​appendix:​api:​template:​definitions#​object_details|Template]] 
-  * [[2.0:manual:​appendix:​api:​usermacro:​definitions#​hosttemplate_level_macro|User macro]] +  * [[manual:​appendix:​api:​usermacro:​definitions#​hosttemplate_level_macro|User macro]] 
-  * [[2.0:manual:​appendix:​api:​hostinterface:​definitions#​host_interface|Host interface]]+  * [[manual:​appendix:​api:​hostinterface:​definitions#​host_interface|Host interface]]
  
 ==== Source ==== ==== Source ====
  
 CHost::​massAdd() in //​frontends/​php/​api/​classes/​CHost.php//​. CHost::​massAdd() in //​frontends/​php/​api/​classes/​CHost.php//​.