Query parameters
-
local boolean
If true, the request retrieves information from the local node only. Defaults to false, which means information is retrieved from the master node.
-
flat_settings boolean
If true, returns settings in flat format.
-
master_timeout string
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
-
include_defaults boolean
If true, returns all relevant default configurations for the index template.
Responses
-
200 application/json
Hide response attribute Show response attribute object
-
Hide index_templates attributes Show index_templates attributes object
-
Hide index_template attributes Show index_template attributes object
-
An ordered list of component template names. Component templates are merged in the order specified, meaning that the last component template specified has the highest precedence.
-
template object
Hide template attributes Show template attributes object
-
aliases object
-
mappings object
Hide mappings attributes Show mappings attributes object
-
all_field object
-
date_detection boolean
-
dynamic string
Values are
strict
,runtime
,true
, orfalse
. -
dynamic_date_formats array[string]
-
dynamic_templates array[object]
-
_field_names object
-
index_field object
-
_meta object
-
numeric_detection boolean
-
properties object
-
_routing object
-
_size object
-
_source object
-
enabled boolean
-
subobjects boolean
-
_data_stream_timestamp object
-
-
settings object
Hide settings attributes Show settings attributes object
-
index object
-
mode string
-
soft_deletes object
-
sort object
-
number_of_routing_shards number
-
check_on_startup string
Values are
true
,false
, orchecksum
. -
codec string
-
auto_expand_replicas string
-
merge object
-
search object
-
refresh_interval string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
max_result_window number
-
max_inner_result_window number
-
max_rescore_window number
-
max_docvalue_fields_search number
-
max_script_fields number
-
max_ngram_diff number
-
max_shingle_diff number
-
blocks object
-
max_refresh_listeners number
-
analyze object
-
highlight object
-
max_terms_count number
-
max_regex_length number
-
routing object
-
gc_deletes string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
default_pipeline string
-
final_pipeline string
-
lifecycle object
-
provided_name string
-
uuid string
-
version object
-
max_slices_per_scroll number
-
translog object
-
query_string object
-
top_metrics_max_size number
-
analysis object
-
settings object
-
time_series object
-
queries object
-
similarity object
Configure custom similarity settings to customize how search results are scored.
-
mapping object
-
indexing.slowlog object
-
indexing_pressure object
-
store object
-
-
lifecycle object
Hide lifecycle attributes Show lifecycle attributes object
-
data_retention string
A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value. -
downsampling object
-
rollover object
-
-
-
version number
-
priority number
Priority to determine index template precedence when a new data stream or index is created. The index template with the highest priority is chosen. If no priority is specified the template is treated as though it is of priority 0 (lowest priority). This number is not automatically generated by Elasticsearch.
-
_meta object
Hide _meta attributes Show _meta attributes object
-
key object
-
allow_auto_create boolean
-
data_stream object
Hide data_stream attributes Show data_stream attributes object
-
hidden boolean
If true, the data stream is hidden.
-
allow_custom_routing boolean
If true, the data stream supports custom routing.
-
-
curl \
-X GET http://api.example.com/_index_template