object hostprototype.delete(array hostPrototypeIds)
该方法允许删除主机原型.
(数组)
要删除主机原型的ID.
(对象)
在hostids
属性中返回已删除主机原型ID的对象.
删除两个主机原型
请求:
{
"jsonrpc": "2.0",
"method": "hostprototype.delete",
"params": [
"10103",
"10105"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
响应:
CHostPrototype::delete() in frontends/php/include/classes/api/services/CHostPrototype.php.