Skip to main content

audit_logs

Creates, updates, deletes, gets or lists a audit_logs resource.

Overview

Nameaudit_logs
TypeResource
Idopenai.audit_logs.audit_logs

Fields

NameDatatypeDescription
idstringThe ID of this log.
actorobjectThe actor who performed the audit logged action.
api_key.createdobjectThe details for events with this type.
api_key.deletedobjectThe details for events with this type.
api_key.updatedobjectThe details for events with this type.
effective_atintegerThe Unix timestamp (in seconds) of the event.
invite.acceptedobjectThe details for events with this type.
invite.deletedobjectThe details for events with this type.
invite.sentobjectThe details for events with this type.
login.failedobjectThe details for events with this type.
logout.failedobjectThe details for events with this type.
organization.updatedobjectThe details for events with this type.
projectobjectThe project that the action was scoped to. Absent for actions not scoped to projects.
project.archivedobjectThe details for events with this type.
project.createdobjectThe details for events with this type.
project.updatedobjectThe details for events with this type.
service_account.createdobjectThe details for events with this type.
service_account.deletedobjectThe details for events with this type.
service_account.updatedobjectThe details for events with this type.
typestringThe event type.
user.addedobjectThe details for events with this type.
user.deletedobjectThe details for events with this type.
user.updatedobjectThe details for events with this type.

Methods

NameAccessible byRequired ParamsDescription
list_audit_logsSELECT

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
;