List available account or zone datasets
GET/{accounts_or_zones}/{account_or_zone_id}/logs/explorer/datasets/available
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.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Path Parameters
List available account or zone datasets
curl https://api.cloudflare.com/client/v4/$ACCOUNTS_OR_ZONES/$ACCOUNT_OR_ZONE_ID/logs/explorer/datasets/available \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"success": true,
"result": [
{
"dataset": "dataset",
"object_type": "account",
"schema": {
"properties": {
"foo": "bar"
},
"required": [
"string"
],
"type": "object"
},
"timestamp_field": "timestamp_field"
}
]
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
"string"
],
"success": true,
"result": [
{
"dataset": "dataset",
"object_type": "account",
"schema": {
"properties": {
"foo": "bar"
},
"required": [
"string"
],
"type": "object"
},
"timestamp_field": "timestamp_field"
}
]
}