Sidebar

zh:manual:api:reference:iconmap:delete

iconmap.delete

Description 说明

object iconmap.delete(array iconMapIds)

This method allows to delete icon maps.此方法允许删除图标拓扑图。

Parameters 参数

(array) IDs of the icon maps to delete.需要删除的图标拓扑图ID。

Return values返回值

(object) Returns an object containing the IDs of the deleted icon maps under the iconmapids property.返回一个对象其中包含在iconmapids属性下的已删除图标拓扑图ID。

Examples 范例

Delete multiple icon maps 删除多个图标拓扑图

Delete two icon maps.删除两个图标拓扑图

Request:

{
    "jsonrpc": "2.0",
    "method": "iconmap.delete",
    "params": [
        "2",
        "5"
    ],
    "auth": "3a57200802b24cda67c4e4010b50c065",
    "id": 1
}

Response:

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

Source来源

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