Skip to main content

accounts_logs_explorer_datasets_available

Creates, updates, deletes, gets or lists an accounts_logs_explorer_datasets_available resource.

Overview

Nameaccounts_logs_explorer_datasets_available
TypeResource
Idcloudflare.logs.accounts_logs_explorer_datasets_available

Fields

The following fields are returned by SELECT queries:

List of dataset types available to create.

NameDatatypeDescription
datasetstringDataset type name (e.g. http_requests).
object_typestringWhether this dataset type is account-scoped or zone-scoped. (account, zone)
schemaobjectJSON Schema that describes the fields this dataset exposes.
timestamp_fieldstringThe primary timestamp field name for this dataset.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idReturns 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

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
;