Get ES|QL datasets
- GET /_query/dataset/{name}
- GET /_query/dataset
Returns one or more datasets used in ES|QL data federation.
A concrete-name miss returns 404; a wildcard pattern or list-all request with no match
returns 200 with an empty array.
- Index privileges:
manage
Path Parameters
-
nameName | Nameoptional -
A comma-separated list of dataset names or wildcard patterns. Omit to return all datasets.
Leave it out to use
/_query/dataset.
Query Parameters
-
master_timeoutstring Duration · default: 30s Period to wait for a connection to the master node.
Response
-
datasetsESQLDatasetrequired -
The matching datasets.
-
namestring Namerequired -
The dataset name.
-
data_sourcestring Namerequired -
The name of the referenced data source.
-
resourcestringrequired -
The URI that identifies the data to read, resolved against the referenced data source. It can include glob patterns, for example a recursive pattern that matches Parquet files under
s3://logs-bucket/access. -
descriptionstring -
A free-text description.
-
settingsmap string to object -
Format- and parsing-specific settings that configure how the resource is read. Common keys include
formatandpartition_detection. Additional keys depend on the format reader; compression can be inferred from the resource URI. -
mappingsDatasetMapping -
The user-declared mapping on the dataset definition.
-
dynamicDynamic · default: true -
The policy for columns that are not declared in
properties.true(the default) infers undeclared columns and overlays the declarations;falsemakes the declaration the entire schema, so undeclared columns are not queryable. -
Values:
truefalse -
propertiesmap string to DatasetFieldMapping -
The per-column declarations, keyed by logical column name.
-
<string>DatasetFieldMapping -
typestringrequired -
The declared column type.
-
pathstring -
The underlying file column that this logical column reads from. This is a read-path rename: the physical column becomes this single logical column.
-
formatstring -
The date-parse pattern for a declared
datecolumn, mirroring the index date-fieldformat.