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 |
---|---|---|---|
raw_method.not[] |
Array | No | |
actor_id[] |
Array | No | |
actor_ip_address[] |
Array | No | |
raw_uri.not[] |
Array | No | |
zone_name[] |
Array | No | |
raw_method[] |
Array | No | |
resource_scope.not[] |
Array | No | |
actor_context[] |
Array | No | |
actor_type.not[] |
Array | No | |
audit_log_id.not[] |
Array | No | |
actor_token_id[] |
Array | No | |
raw_uri[] |
Array | No | |
account_name.not[] |
Array | No | |
before |
String | Yes |
Limits the returned results to logs older than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339. |
actor_token_name.not[] |
Array | No | |
actor_context.not[] |
Array | No | |
raw_status_code.not[] |
Array | No | |
actor_id.not[] |
Array | No | |
resource_id.not[] |
Array | No | |
limit |
Number | No |
Default value: 100 |
raw_status_code[] |
Array | No | |
actor_email.not[] |
Array | No | |
direction |
String | No |
Possible values:
Default value: "desc" |
account_name[] |
Array | No | |
actor_type[] |
Array | No | |
resource_product.not[] |
Array | No | |
zone_id[] |
Array | No | |
action_type.not[] |
Array | No | |
cursor |
String | No | |
actor_email[] |
Array | No | |
zone_id.not[] |
Array | No | |
actor_token_name[] |
Array | No | |
raw_cf_ray_id.not[] |
Array | No | |
resource_type[] |
Array | No | |
actor_token_id.not[] |
Array | No | |
raw_cf_ray_id[] |
Array | No | |
action_result.not[] |
Array | No | |
actor_ip_address.not[] |
Array | No | |
resource_scope[] |
Array | No | |
zone_name.not[] |
Array | No | |
audit_log_id[] |
Array | No | |
since |
String | Yes |
Limits the returned results to logs newer than the specified date. This can be a date string 2019-04-30 (interpreted in UTC) or an absolute timestamp that conforms to RFC3339. |
resource_product[] |
Array | No | |
resource_id[] |
Array | No | |
resource_type.not[] |
Array | No | |
action_type[] |
Array | No | |
action_result[] |
Array | No |
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.