Description

    object usermacro.delete(array **hostMacroIds**)

    This method allows to delete host macros.

    参数

    (array) 要删除的主机宏的ID。

    返回值

    (object)返回一个包含“hostMacs”属性下删除的主机宏ID的对象。

    Return values

    Returns an object containing the IDs of the deleted host macros under the hostmacroids property.

    Examples

    删除多个主机宏

    删除2个主机宏

    Deleting multiple host macros

    Request:

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "32",
    4. "11"
    5. ]
    6. },

    来源

    CUserMacro::delete() in frontends/php/include/classes/api/services/CUserMacro.php.