host.massupdate
This method allows to simultaneously replace or remove related objects and update properties on multiple hosts.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.
Parameters
Additionally to the , the method accepts the following parameters.
(object)
Returns an object containing the IDs of the updated hosts under the hostids
property.
Examples
Enabling multiple hosts
:
Response:
"jsonrpc": "2.0",
"hostids": [
"69665",
"69666"
]
},
}