Zabbix Documentation 3.4

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:screenitem:delete

screenitem.delete

描述

object screenitem.delete(array screenItemIds)

删除聚合图形项目的方法.

参数

(array) 删除聚合图形项目的ID.

返回值

(对象)在删除聚合图形项目screenitemids下面返回一个对象的ID. 返回对象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.