跳转到主要内容
安全与审计相关接口/ZMetis 审计

查询ZMetis审计列表

列出 Zmetis 审计事件,支持服务端行授权和稳定分页。

GET/api/v1/zmetis/audits

操作 ID

ListZmetisAudits

起始版本

1.2.0

执行模式

同步

认证信息

需要认证

认证信息

调用该 API 时需要在请求头中携带以下认证信息。

Authorizationstring必填

Bearer 令牌

X-Tenant-IDstring

X-Tenant-ID

请求参数

application/json

查询参数

  • requestId
    String

    请求ID。

  • sourceModule
    String

    已使用过滤审计记录。

  • action
    String

    动作名称。

  • rpcMethod
    String

    RPC方法。

  • result
    String

    可选的结果筛选条件:running、success、failure、partial 或 denied。

响应状态

200 OK

请求成功。

Content-Type: application/json

响应体根类型: object

  • items
    List

    条目列表。

    • uuid
      String

      资源的UUID,唯一标识该资源。

      示例: value

    • requestId
      String

      请求ID。

      示例: value

    • sourceModule
      String

      源模块。

      示例: value

    • action
      String

      动作名称。

      示例: value

    • rpcMethod
      String

      RPC方法。

      示例: value

    • result
      String

      审计结果:活动异步尝试为 running,其他值为 success、failure、partial 或 denied。

      示例: running

    • resourceType
      String

      资源类型。

      示例: value

    • resourceUuid
      String

      资源UUID。若指定,资源会使用该字段值作为UUID。

      示例: value

    • resourceName
      String

      资源名称。

      示例: value

    • actorId
      String

      执行者ID。

      示例: value

    • actorName
      String

      执行者名称。

      示例: value

    • clientIp
      String

      客户端IP。

      示例: value

    • errorCode
      String

      LDAP错误分类编码。

      示例: value

    • errorMessage
      String

      错误返回消息。

      示例: value

    • metadata
      Object

      附加元数据。

    • startedAt
      String

      开始时间。

      示例: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • finishedAt
      String

      完成时间。

      示例: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • durationMs
      String

      时长毫秒。

      示例: 10

      {"format":"int64"}

    • createdAt
      String

      创建时间。

      示例: 2026-01-15T08:00:00Z

      {"format":"date-time"}

    • sourceEvent
      Object

      原始来源事实;旧版尽力记录的审计数据中可能不返回。此字段不改变 GetAudit 使用的 UUID 或行级权限控制。

      • sourceSystem
        String

        源系统。

        示例: value

      • record
        Object

        记录。

        • eventId
          String

          事件ID。

          示例: value

        • requestId
          String

          请求ID。

          示例: value

        • timestamp
          String

          时间戳。

          示例: 2026-01-15T08:00:00Z

          {"format":"date-time"}

        • actorType
          String

          执行者类型。

          示例: value

        • tenantId
          String

          租户ID。

          示例: value

        • userId
          String

          用户ID。

          示例: value

        • username
          String

          用户名。

          示例: value

        • userDisplayName
          String

          用户显示名称。

          示例: value

        • sourceIp
          String

          源IP地址。

          示例: value

        • userAgent
          String

          用户代理。

          示例: value

        • apiPath
          String

          API路径。

          示例: value

        • httpMethod
          String

          HTTP方法。

          示例: value

        • httpStatus
          Integer

          来源未观测到 HTTP 响应状态时不返回。

          示例: 10

          {"format":"int32"}

        • operation
          String

          操作。

          示例: value

        • action
          String

          动作名称。

          示例: value

        • module
          String

          模块。

          示例: value

        • resourceType
          String

          资源类型。

          示例: value

        • resourceId
          String

          资源唯一标识。

          示例: value

        • severity
          String

          告警级别。

          示例: value

        • result
          String

          执行结果。

          示例: value

        • responseTimeMs
          String

          请求计时未知时不返回;显式的 0 表示已知的持续时长。

          示例: 10

          {"format":"int64"}

        • detail
          String

          详细信息。

          示例: value

        • errorDetailJson
          String

          错误详情JSON。

          示例: value

        • decisionDetailJson
          String

          决策详情JSON。

          示例: value

  • total
    String

    返回结果总数。

    示例: 10

    {"format":"int64"}

  • limit
    Integer

    最大返回条目数。

    示例: 10

    {"format":"int32"}

  • offset
    Integer

    查询起始偏移量。

    示例: 10

    {"format":"int32"}

  • 变更时间

    新增响应字段 actorType, apiPath, decisionDetailJson...
    查看 API
  • 变更时间

    已删除响应字段 actorType, apiPath, decisionDetailJson...
    查看 API
  • 变更时间

    新增响应字段 actorType, apiPath, decisionDetailJson...
    查看 API