This method allows to simultaneously replace or remove related objects and update properties on multiple hosts.此方法允许同时替换或移除相关对象和在多个主机中更新属性。
Parameters 参数
(object)
Parameters containing the IDs of the hosts to update and the properties that should be updated. 参数包含更新主机的ID和需要更新的属性。
Additionally to the standard host properties, the method accepts the following parameters.另外,对于标准主机属性,此方法接受以下参数。
(object)
Returns an object containing the IDs of the updated hosts under the property.返回一个对象其中包含在hostids属性下已更新主机的ID
Examples 范例
Enabling multiple hosts 启用多个主机
Request:
Response:
- "jsonrpc": "2.0",
- "result": {
- "hostids": [
- "69665",
- "69666"
- ]
- },
- }