Zabbix Documentation 4.0

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:update

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:api:reference:host:update [2019/01/11 12:13]
martins-v less ambiguous wording
manual:api:reference:host:update [2020/01/31 15:17]
martins-v updating the host technical name will also update the host's visible name if not given or empty
Line 12: Line 12:
  
 The ''​hostid''​ property must be defined for each host, all other properties are optional. Only the given properties will be updated, all others will remain unchanged. The ''​hostid''​ property must be defined for each host, all other properties are optional. Only the given properties will be updated, all others will remain unchanged.
 +
 +Note, however, that updating the host technical name will also update the host's visible name (if not given or empty) by the host's technical name value.
  
 Additionally to the [[object#​host|standard host properties]],​ the method accepts the following parameters. Additionally to the [[object#​host|standard host properties]],​ the method accepts the following parameters.
Line 35: Line 37:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 49: Line 51:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 66: Line 68:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 87: Line 89:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 104: Line 106:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 127: Line 129:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 144: Line 146:
  
 Request: Request:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​
Line 161: Line 163:
  
 Response: Response:
-<​code ​js>+<​code ​java>
 { {
     "​jsonrpc":​ "​2.0",​     "​jsonrpc":​ "​2.0",​