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.
- Audit logs are available only for the past 30 days.
- Error handling is not yet implemented.
Servers
- https://api.cloudflare.com/client/v4
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:
|
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:
Default value: "desc" |
account_name |
String | No | |
actor_type |
String | No |
Possible values:
|
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:
|
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:
|
action_result |
String | No |
Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.