object usermacro.delete(array hostMacroIds)
object usermacro.delete(array hostMacroIds)
This method allows to delete host macros.
(array)
要删除的主机宏的ID。
(array)
IDs of the host macros to delete.
(object)
返回一个包含“hostMacs”属性下删除的主机宏ID的对象。
(object)
Returns an object containing the IDs of the deleted host macros under the hostmacroids
property.
删除2个主机宏
Delete two host macros.
Request:
{
"jsonrpc": "2.0",
"method": "usermacro.delete",
"params": [
"32",
"11"
],
"auth": "3a57200802b24cda67c4e4010b50c065",
"id": 1
}
Response:
CUserMacro::delete() in frontends/php/include/classes/api/services/CUserMacro.php.