object host.delete(array hosts)
This method allows to delete hosts.此方法允许删除主机。
(array)
IDs of hosts to delete. 删除主机的ID
(object)
Returns an object containing the IDs of the deleted hosts under the hostids
property.返回一个对象其中包含在hostids属性下已删除主机的ID。
Delete two hosts.删除两个主机。
Request:
{
"jsonrpc": "2.0",
"method": "host.delete",
"params": [
"13",
"32"
],
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Response:
CHost::delete() in frontends/php/include/classes/api/services/CHost.php.