获取

    此方法允许根据给定参数来获取图标映射。

    此方法仅允许超级管理员类型的用户使用。 调用此方法的权限可以在用户角色设置里撤销。更多信息请参见用户角色

    参数

    该方法支持如下参数。

    (整数/数组) 返回任一:

    • 对象数组;
    • 如果已使用countOutput参数,则检索对象的计数。

    例如

    检索图标映射

    请求:

    响应

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. "mappings": [
    5. {
    6. "iconmapid": "3",
    7. "iconid": "6",
    8. "inventory_link": "1",
    9. "expression": "server",
    10. "sortorder": "0"
    11. },
    12. {
    13. "iconmappingid": "4",
    14. "iconmapid": "3",
    15. "expression": "switch",
    16. "sortorder": "1"
    17. }
    18. ],
    19. "iconmapid": "3",
    20. "name": "Host type icons",
    21. "default_iconid": "2"
    22. }
    23. ],
    24. "id": 1

    来源