accounts_logs_explorer_datasets_available
Creates, updates, deletes, gets or lists an accounts_logs_explorer_datasets_available resource.
Overview
| Name | accounts_logs_explorer_datasets_available |
| Type | Resource |
| Id | cloudflare.logs.accounts_logs_explorer_datasets_available |
Fields
The following fields are returned by SELECT queries:
- list
List of dataset types available to create.
| Name | Datatype | Description |
|---|---|---|
dataset | string | Dataset type name (e.g. http_requests). |
object_type | string | Whether this dataset type is account-scoped or zone-scoped. (account, zone) |
schema | object | JSON Schema that describes the fields this dataset exposes. |
timestamp_field | string | The primary timestamp field name for this dataset. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Returns all dataset types that this account or zone can create. Each entry includes the dataset schema and timestamp field. The schema shows all possible fields for a dataset. However, not all fields may be available for your account or zone. When creating or updating a dataset, only fields available to your account or zone can be enabled. If you request a field that is not available, you will receive an error. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
Returns all dataset types that this account or zone can create. Each entry includes the dataset schema and timestamp field. The schema shows all possible fields for a dataset. However, not all fields may be available for your account or zone. When creating or updating a dataset, only fields available to your account or zone can be enabled. If you request a field that is not available, you will receive an error.
SELECT
dataset,
object_type,
schema,
timestamp_field
FROM cloudflare.logs.accounts_logs_explorer_datasets_available
WHERE account_id = '{{ account_id }}' -- required
;