Skip to content

Commit 933fe1b

Browse files
committed
Add listFileAccessLogs
1 parent 1bcadeb commit 933fe1b

File tree

2 files changed

+105
-0
lines changed

2 files changed

+105
-0
lines changed

system_admin_account_operations.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,6 +3340,59 @@ paths:
33403340
type: integer
33413341
description: The total number of logs available.
33423342
example: 15
3343+
/api/v2.1/admin/file-access-logs/:
3344+
get:
3345+
tags:
3346+
- Logs
3347+
summary: List file access logs
3348+
operationId: listFileAccessLogs
3349+
description: Returns a list of accessed files.
3350+
security:
3351+
- AccountTokenAuth: []
3352+
parameters:
3353+
- $ref: "#/components/parameters/page"
3354+
- $ref: "#/components/parameters/per_page"
3355+
responses:
3356+
"200":
3357+
description: OK
3358+
content:
3359+
application/json:
3360+
example:
3361+
{
3362+
"file_access_log_list": [
3363+
{
3364+
"timestamp": "2024-09-27T09:17:38+08:00",
3365+
"etype": "download",
3366+
"device": "",
3367+
"user": "af57b7dda06b4928b255339d92294853@auth.local",
3368+
"name": "org_admin1",
3369+
"contact_email": "org_admin1@qq.com",
3370+
"ip": "172.18.0.1",
3371+
"org_id": 1,
3372+
"dtable_uuid": "8e7ad4a8-73dc-4be4-abae-057fd5203a0e",
3373+
"file_path": "/custom/aaa (1) (1).md",
3374+
"dtable_name": "1\u5bfc\u5165\u534f\u4f5c\u4eba",
3375+
"org_name": "org1",
3376+
"file_or_dir_name": "aaa (1) (1).md"
3377+
},
3378+
{
3379+
"timestamp": "2024-09-27T03:07:59+08:00",
3380+
"etype": "web",
3381+
"device": "",
3382+
"user": "fc7043070b1d40878570f666de8d3481@auth.local",
3383+
"name": "view",
3384+
"contact_email": "yangtong1009@163.com",
3385+
"ip": "172.18.0.1",
3386+
"org_id": -1,
3387+
"dtable_uuid": "96908687-8713-4b81-9856-77f9d96af4b3",
3388+
"file_path": "/custom/aaa.md",
3389+
"dtable_name": "\u5bfc\u5165\u4f18\u5316",
3390+
"org_name": "",
3391+
"file_or_dir_name": "aaa.md"
3392+
}
3393+
],
3394+
"count": 2
3395+
}
33433396

33443397
# Plugins
33453398
/api/v2.1/admin/dtable-system-plugins/:

team_admin_account_operations.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,58 @@ paths:
16421642
],
16431643
"total_count": 3,
16441644
}
1645+
/api/v2.1/org/{org_id}/admin/file-access-logs/:
1646+
get:
1647+
tags:
1648+
- Activities & Logs
1649+
summary: List file access logs
1650+
operationId: listFileAccessLogs
1651+
description: Returns a list of accessed files inside a specific team.
1652+
security:
1653+
- AccountTokenAuth: []
1654+
parameters:
1655+
- $ref: "#/components/parameters/org_id"
1656+
- $ref: "#/components/parameters/page"
1657+
- $ref: "#/components/parameters/per_page"
1658+
responses:
1659+
"200":
1660+
description: OK
1661+
content:
1662+
application/json:
1663+
example:
1664+
{
1665+
"file_access_log_list": [
1666+
{
1667+
"timestamp": "2024-10-08T17:54:52+08:00",
1668+
"etype": "download",
1669+
"device": "",
1670+
"user": "af57b7dda06b4928b255339d92294853@auth.local",
1671+
"name": "org_admin1",
1672+
"contact_email": "org_admin1@qq.com",
1673+
"ip": "172.18.0.1",
1674+
"org_id": 1,
1675+
"dtable_uuid": "8e7ad4a8-73dc-4be4-abae-057fd5203a0e",
1676+
"file_path": "custom/aaa (1) (1).md",
1677+
"dtable_name": "1\u5bfc\u5165\u534f\u4f5c\u4eba",
1678+
"file_or_dir_name": "aaa (1) (1).md"
1679+
},
1680+
{
1681+
"timestamp": "2024-09-29T07:25:17+08:00",
1682+
"etype": "view",
1683+
"device": "",
1684+
"user": "af57b7dda06b4928b255339d92294853@auth.local",
1685+
"name": "org_admin1",
1686+
"contact_email": "org_admin1@qq.com",
1687+
"ip": "172.18.0.1",
1688+
"org_id": 1,
1689+
"dtable_uuid": "8e7ad4a8-73dc-4be4-abae-057fd5203a0e",
1690+
"file_path": "/custom/aaa (1) (1).md",
1691+
"dtable_name": "1\u5bfc\u5165\u534f\u4f5c\u4eba",
1692+
"file_or_dir_name": "aaa (1) (1).md"
1693+
}
1694+
],
1695+
"count": 2
1696+
}
16451697
/api/v2.1/org/{org_id}/admin/org-logo/:
16461698
post:
16471699
tags:

0 commit comments

Comments
 (0)