Sidebar

Zabbix Summit 2022
Register for Zabbix Summit 2022

删除

描述

object screenitem.delete(array screenItemIds)

此方法允许删除一个聚合图形项

参数

(array) 删除聚合图形项的IDs

返回值

(object) 返回在screenitemids属性下包含已删除聚合图形项的id的对象。

示例如下

删除多个聚合图像项

删除两个聚合图形项

Request:

{
           "jsonrpc": "2.0",
           "method": "screenitem.delete",
           "params": [
               "65",
               "63"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "screenitemids": [
                   "65",
                   "63"
               ]
           },
           "id": 1
       }

猜你想看

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