审计日志

获取空间审计日志

Changed on

返回该空间最近的审计事件,按 id 倒序。游标分页:将上次响应的 next_cursor 作为下一次请求的 after_id。

get/tenants/{id}/audit-log

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/tenants/{id}/audit-log
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

空间ID

Query parameters

after_idinteger

游标:返回 id 小于此值的记录(默认从最新开始)

limitinteger

页大小,1-100,默认 50

actionstring

按 action 精确过滤(如 rbac.member_added / rbac.access_denied)

outcomestring

按 outcome 精确过滤(success / denied)

actorstring

按 actor_user_id 精确过滤

Response

OK

next_cursorinteger

NextCursor is the id of the last entry on this page, 0 when it is empty.

successboolean

Changes