This method allows to update existing host prototypes.此方法允许更新现有的主机原型。
Parameters 参数
(object/array)
Host prototype properties to be updated.要更新的主机原型属性。
The property must be defined for each host prototype, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.必须为每个主机原型定义“hostid”属性,所有其他属性都是可选的。 只有过期的属性将被更新,所有其他属性将保持不变。
Returns an object containing the IDs of the updated host prototypes under the hostids
property.返回包含“hostid”属性下更新的主机原型的ID的对象。
Examples 示例
Disabling a host prototype禁用主机原型
Disable a host prototype, that is, set its status to 1.禁用主机原型,即将其状态设置为1。
Request:
- {
- "jsonrpc": "2.0",
- "result": {
- "hostids": [
- ]
- },
- "id": 1
- }