Alfresco API

GET /audit-applications

基本信息

Note:该端点在Alfresco 5.2.2和更高版本中可用。

获取此存储库(repository)中audit申请的列表。

如果启用,此列表可能包括预配置的audit应用程序,例如:

  • Alfresco系统访问
  • CMIS变更日志
  • Alfresco标签服务
  • Alfresco同步服务(由Enterprise Cloud Sync使用)

您必须具有管理员权限才能获取audit信息。

请求方式 GET

请求API /audit-applications

响应等级(状态200)

成功回应

{
  "list": {
    "pagination": {
      "count": 0,
      "hasMoreItems": true,
      "totalItems": 0,
      "skipCount": 0,
      "maxItems": 0
    },
    "entries": [
      {
        "entry": {
          "id": "string",
          "name": "string",
          "isEnabled": true
        }
      }
    ]
  }
}

响应内容类型 applicaiton/json

Query参数

名称 类型 是否必填 示例值 描述
skipCount integer 0 在list中跳过指定数量的数据。 如果未提供,则默认值为0。
maxItems integer 100 在list中要返回的最大项目数。 如果未提供,则默认值为100。
fields Array[string]   field名称的list。 例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。
例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。 该列表适用于返回的单个实体或集合中的条目。
如果API方法也支持include参数,则除了在fields参数中指定的fields外,还返回include参数中指定的fields。

错误信息描述

状态码 原因
400 无效的参数:maxItemsskipCount的值无效
401 验证失败
403 用户无权获取audit信息
501 系统禁用audit

返回结果示例

{
  "error": {
    "errorKey": "string",
    "statusCode": 0,
    "briefSummary": "string",
    "stackTrace": "string",
    "descriptionURL": "string",
    "logId": "string"
  }
}