Zabbix Documentation 4.2

Sidebar

删除

Description 描述

object map.delete(array mapIds)

This method allows to delete maps. 这个方法允许删除拓扑图

Parameters 参数

(array) IDs of the maps to delete. 需要删除拓扑图的IDS

Return values 返回值

(object) Returns an object containing the IDs of the deleted maps under the sysmapids property. 返回包含“sysmapid”属性下的已删除拓扑图的IDS的对象。

Examples 示例如下

Delete multiple maps 删除多个拓扑图

Delete two maps.删除2个

Request:

{
           "jsonrpc": "2.0",
           "method": "map.delete",
           "params": [
               "12",
               "34"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "sysmapids": [
                   "12",
                   "34"
               ]
           },
           "id": 1
       }

Source

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