查询

描述

object housekeeping.get(object parameters)

该方法允许按照给定的参数获取管家对象

该方法适用于管理员超级管理员用户类型。可以在用户角色设置中撤销调用该方法的权限。有关详细信息,参阅用户角色

参数

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

该方法仅支持一个参数

参数类型描述
output查询该参数对于参考注释中所有 get方法都适用。

返回值

(object) 返回管家对象

示例

请求:

  1. {
  2. "jsonrpc": "2.0",
  3. "method": "housekeeping.get",
  4. "params": {
  5. "output": "extend"
  6. },
  7. "auth": "038e1d7b1735c6a5436ee9eae095879e",
  8. "id": 1
  9. }

响应:

  1. {
  2. "jsonrpc": "2.0",
  3. "result": {
  4. "hk_events_mode": "1",
  5. "hk_events_trigger": "365d",
  6. "hk_events_service": "1d",
  7. "hk_events_internal": "1d",
  8. "hk_events_discovery": "1d",
  9. "hk_events_autoreg": "1d",
  10. "hk_services_mode": "1",
  11. "hk_services": "365d",
  12. "hk_audit_mode": "1",
  13. "hk_audit": "365d",
  14. "hk_sessions_mode": "1",
  15. "hk_sessions": "365d",
  16. "hk_history_mode": "1",
  17. "hk_history_global": "0",
  18. "hk_history": "90d",
  19. "hk_trends_mode": "1",
  20. "hk_trends_global": "0",
  21. "hk_trends": "365d",
  22. "db_extension": "",
  23. "compression_status": "0",
  24. "compress_older": "7d"
  25. },
  26. "id": 1
  27. }

来源

CHousekeeping ::get() in ui/include/classes/api/services/CHousekeeping.php.