参数

    (object) 定义所需输出的参数。

    该方法提供以下参数。

    返回两者其中任一:

    • 如果已经使用了“countOutput”参数,则检索对象的计数.

    范例

    从主机中检索应用集

    从主机中根据名称排序检索所有的应用集。

    请求:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": [
    4. {
    5. "hostid": "10001",
    6. "name": "CPU",
    7. "templateids": []
    8. },
    9. {
    10. "applicationid": "5",
    11. "hostid": "10001",
    12. "name": "Filesystems",
    13. "templateids": []
    14. },
    15. {
    16. "applicationid": "21",
    17. "hostid": "10001",
    18. "templateids": []
    19. },
    20. {
    21. "applicationid": "15",
    22. "hostid": "10001",
    23. "name": "Memory",
    24. "templateids": []
    25. },
    26. ],
    27. "id": 1
    28. }

    来源

    CApplication::get() in frontends/php/include/classes/api/services/CApplication.php.