2022 Zabbix中国峰会
2022 Zabbix中国峰会

templatescreen.delete

Description说明

object templatescreen.delete(array templateScreenIds)

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

Parameters参数

(array) IDs of the template screens to delete要删除的模板聚合图形的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.