Sidebar

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

valuemap.delete

说明

object valuemap.delete(array valuemapids)

此方法允许删除值映射。

参数

(array) 要被删除的映射的ID。

返回值

(object) 返回一个对象,该对象包含“VALUE”属性下的已删除值映射的ID。

示例

Deleting multiple value maps

Delete two value maps.

Request:

{
           "jsonrpc": "2.0",
           "method": "valuemap.delete",
           "params": [
               "1",
               "2"
           ],
           "auth": "57562fd409b3b3b9a4d916d45207bbcb",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "valuemapids": [
                   "1",
                   "2"
               ]
           },
           "id": 1
       }

来源

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