Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed Jan 2, 2025
1 parent 8223013 commit b937fae
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions proposals/new/enhance_audit_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ Add a new API to query the audit log ext event. the API is `/api/v2.0/auditlog-e
$ref: '#/responses/500'
```

The audit log v2 is avaible at project level, the API is `/api/v2.0/projects/{project_name}/logsext`, the user can filter the audit log event by the operation, resource_type, resource. and only the project level admin can view the audit log event. and only display the event of current project.
The audit log v2 is avaible at project level, the API is `/api/v2.0/projects/{project_name}/auditlog-exts`, the user can filter the audit log event by the operation, resource_type, resource. and only the project level admin can view the audit log event. and only display the event of current project.

```
/projects/{project_name}/logsext:
/projects/{project_name}/auditlog-exts:
get:
summary: Get recent logs of the projects
description: Get recent logs of the projects
Expand Down Expand Up @@ -438,10 +438,10 @@ The AuditLogExt is defined as follow
description: The time when this operation is triggered.
```

In order to provide a list of audit log event types to disable in configuration pannel, the API `/api/v2.0/auditlog-exts/eventtypes` provide the event types ID and names.
In order to provide a list of audit log event types to disable in configuration pannel, the API `/api/v2.0/auditlog-exts/events` provide the event types ID and names.

```
/auditlog-exts/eventtypes:
/auditlog-exts/events:
get:
summary: Get all event types of audit log
description: |
Expand Down Expand Up @@ -471,12 +471,9 @@ and it returns the `AuditLogEventType`
AuditLogEventType:
type: object
properties:
event_id:
event_type:
type: string
description: the id of the event type, such as create_user
name:
type: string
description: the name of the event type such as Create user
description: the event type, such as create_user
```

## Related UI changes
Expand Down

0 comments on commit b937fae

Please sign in to comment.