Skip to content

tys.audit_events.list()

Methodtryyoursize

The audit log of the key’s organization, newest first. Scope audit:read.

Filters: action (a trailing . matches a prefix), actor (actor_type:actor_id), store_id, target, from_ (or **{"from": ...}), to (datetime or RFC 3339 string), limit (≤ 200), cursor.

def list(**filters: Any) -> ListPage
**filtersAnyRequired

action (a trailing . matches a prefix), actor (actor_type:actor_id), store_id, target, from_ and to (datetime or RFC 3339), limit (≤ 200), cursor. Unknown filters raise TypeError.

ListPage: Audit events, newest first. A dict with data, has_more, next_cursor; next_page() and auto_paging_iter() walk the rest. See ListPage.

for event in tys.audit_events.list(action="api_key.").auto_paging_iter():
print(event["created_at"], event["actor_type"], event["action"])

Was this page helpful?