This method allows to delete hosts.此方法允许删除主机。
Returns an object containing the IDs of the deleted hosts under the property.返回一个对象其中包含在hostids属性下已删除主机的ID。
Deleting multiple hosts 删除多个主机
Request:
- {
- "jsonrpc": "2.0",
- "result": {
- "13",
- "32"
- ]
- },
- }
CHost::delete() in frontends/php/include/classes/api/services/CHost.php.