This method allows to remove related objects from multiple hosts.此方法允许从多个主机中移除相关对象。
Parameters参数
(object)
Parameters containing the IDs of the hosts to update and the objects that should be removed.参数包含更新主机的ID和需要被移除的对象。
Examples范例
Unlinking templates 删除模板链接
Unlink a template from two hosts and delete all of the templated entities.从两个主机中删除一个模板链接并且删除所有模板实体。
Request:
- {
- "jsonrpc": "2.0",
- "result": {
- "hostids": [
- "69665",
- "69666"
- },
- "id": 1
- }
Source来源
CHost::massRemove() in frontends/php/include/classes/api/services/CHost.php.