audit_logs
Creates, updates, deletes, gets or lists a audit_logs resource.
Overview
| Name | audit_logs |
| Type | Resource |
| Id | openai.audit_logs.audit_logs |
Fields
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of this log. |
actor | object | The actor who performed the audit logged action. |
api_key.created | object | The details for events with this type. |
api_key.deleted | object | The details for events with this type. |
api_key.updated | object | The details for events with this type. |
effective_at | integer | The Unix timestamp (in seconds) of the event. |
invite.accepted | object | The details for events with this type. |
invite.deleted | object | The details for events with this type. |
invite.sent | object | The details for events with this type. |
login.failed | object | The details for events with this type. |
logout.failed | object | The details for events with this type. |
organization.updated | object | The details for events with this type. |
project | object | The project that the action was scoped to. Absent for actions not scoped to projects. |
project.archived | object | The details for events with this type. |
project.created | object | The details for events with this type. |
project.updated | object | The details for events with this type. |
service_account.created | object | The details for events with this type. |
service_account.deleted | object | The details for events with this type. |
service_account.updated | object | The details for events with this type. |
type | string | The event type. |
user.added | object | The details for events with this type. |
user.deleted | object | The details for events with this type. |
user.updated | object | The details for events with this type. |
Methods
| Name | Accessible by | Required Params | Description |
|---|---|---|---|
list_audit_logs | SELECT | |
SELECT examples
SELECT
id,
actor,
api_key.created,
api_key.deleted,
api_key.updated,
effective_at,
invite.accepted,
invite.deleted,
invite.sent,
login.failed,
logout.failed,
organization.updated,
project,
project.archived,
project.created,
project.updated,
service_account.created,
service_account.deleted,
service_account.updated,
type,
user.added,
user.deleted,
user.updated
FROM openai.audit_logs.audit_logs
;