Zabbix Documentation 4.0

3.04.04.45.0 (current)| In development:5.2 (devel)| Unsupported:1.82.02.22.43.23.44.2Guidelines

User Tools

Site Tools


Sidebar

zh:manual:api:reference:templatescreen:delete

删除

Description 说明

object templatescreen.delete(array templateScreenIds)

This method allows to delete template screens. 此方法允许删除聚合图形模板。

Parameters 参数

(array) IDs of the template screens to delete. (array)需要删除的聚合图形模板ID。

Return values 返回值

(object) Returns an object containing the IDs of the deleted template screens under the screenids property. (object)返回一个对象,该对象包含在screenids属性中已删除聚合图形模板的ID。

Examples 范例

Delete multiple template screens 删除多个聚合图形模板

Delete two template screens. 删除两个聚合图形模板。

Request 请求:

{
    "jsonrpc": "2.0",
    "method": "templatescreen.delete",
    "params": [
        "45",
        "46"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}

Response 响应:

{
    "jsonrpc": "2.0",
    "result": {
        "screenids": [
            "45",
            "46"
        ]
    },
    "id": 1
}

Source 源码

CTemplateScreen::delete() in frontends/php/include/classes/api/services/CTemplateScreen.php. CTemplateScreen::delete()方法可在frontends/php/include/classes/api/services/CTemplateScreen.php中参考。