GET /accounts/{account_id}/logs/audit

Gets a list of audit logs for an account.

This is the beta release of Audit Logs Version 2. Since this is a beta version, there may be gaps or missing entries in the available audit logs. Be aware of the following limitations.

Servers

Path parameters

Name Type Required Description
account_id String Yes

Query parameters

Name Type Required Description
actor_id String No
actor_ip_address String No
zone_name String No
raw_method String No
actor_context String No

Possible values:

  • "api_token"
  • "api_key"
  • "oauth"
  • "origin_ca_key"
  • "dash"
actor_token_id String No
raw_uri String No
before String Yes

Filters actions based on a given timestamp in the format yyyy-mm-dd, returning only logs that occurred on and before the specified date.

limit Number No

Default value: 100

raw_status_code Integer No
direction String No

Possible values:

  • "desc"
  • "asc"

Default value: "desc"

account_name String No
actor_type String No

Possible values:

  • "account"
  • "cloudflare_admin"
  • "user"
zone_id String No
cursor String No
actor_email String No
actor_token_name String No
resource_type String No
raw_cf_ray_id String No
resource_scope String No

Possible values:

  • "accounts"
  • "user"
  • "zones"
audit_log_id String No
since String Yes

Filters actions based on a given timestamp in the format yyyy-mm-dd, returning only logs that occurred on and after the specified date.

resource_product String No
resource_id String No
action_type String No

Possible values:

  • "create"
  • "delete"
  • "update"
  • "view"
action_result String No

Possible values:

  • "success"
  • "failure"

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.