参数
(object)
定义所需输出的参数。
该方法提供以下参数。
返回两者其中任一:
如果已经使用了“countOutput”参数,则检索对象的计数.
范例
从主机中检索应用集
从主机中根据名称排序检索所有的应用集。
请求:
- {
- "jsonrpc": "2.0",
- "result": [
- {
- "hostid": "10001",
- "name": "CPU",
- "templateids": []
- },
- {
- "applicationid": "5",
- "hostid": "10001",
- "name": "Filesystems",
- "templateids": []
- },
- {
- "applicationid": "21",
- "hostid": "10001",
- "templateids": []
- },
- {
- "applicationid": "15",
- "hostid": "10001",
- "name": "Memory",
- "templateids": []
- },
- ],
- "id": 1
- }
来源
CApplication::get() in frontends/php/include/classes/api/services/CApplication.php.