获取
此方法允许根据给定参数来获取图标映射。
此方法仅允许超级管理员类型的用户使用。 调用此方法的权限可以在用户角色设置里撤销。更多信息请参见用户角色。
参数
该方法支持如下参数。
(整数/数组)
返回任一:
- 对象数组;
- 如果已使用countOutput参数,则检索对象的计数。
例如
检索图标映射
请求:
响应
{
"jsonrpc": "2.0",
"result": [
"mappings": [
{
"iconmapid": "3",
"iconid": "6",
"inventory_link": "1",
"expression": "server",
"sortorder": "0"
},
{
"iconmappingid": "4",
"iconmapid": "3",
"expression": "switch",
"sortorder": "1"
}
],
"iconmapid": "3",
"name": "Host type icons",
"default_iconid": "2"
}
],
"id": 1