Details on the various actions that can be performed on the Audit Logs resource, including the expected parameters and the potential responses.
Returns the audit logs for the organization
result = client.audit_logs.get(orgId=my_org_id)
print(result)
The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Organization, all.Organization.read, all.User, all.User.read, auditLogs.*, or auditLogs.get.
Name | Type | Required | Description | Default | Example |
---|---|---|---|---|---|
orgId | string | Y | ID associated with the organization | 575ed6e87ae143cd83dc4aa8 | |
sortField | string | N | Field to sort the results by. Accepted values are: creationDate, responseStatus, actorName | creationDate | creationDate |
sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
page | string | N | Which page of results to return | 0 | 0 |
perPage | string | N | How many items to return per page | 100 | 10 |
start | string | N | Start of time range for audit log query | 1465790400000 | |
end | string | N | End of time range for audit log query | 1465790400000 | |
auditLogFilter | Audit Log Filter | N | Filters for the audit log query | Audit Log Filter Example | |
losantdomain | string | N | Domain scope of request (rarely needed) | example.com |
Code | Type | Description |
---|---|---|
200 | Audit Logs | Collection of audit logs |
Code | Type | Description |
---|---|---|
400 | Error | Error if malformed request |
404 | Error | Error if organization was not found |