Get legacy index templates
deprecated
- GET /_template/{name}
- GET /_template
Get information about one or more index templates.
IMPORTANT: This documentation is about legacy index templates, which are deprecated and will be replaced by the composable templates introduced in Elasticsearch 7.8.
- Cluster privileges:
manage_index_templates
Path Parameters
-
nameName | Nameoptional -
Comma-separated list of index template names used to limit the request. Wildcard (
*) expressions are supported. To return all index templates, omit this parameter or use a value of_allor*.Leave it out to use
/_template.
Query Parameters
-
flat_settingsboolean · default: false If
true, returns settings in flat format.-
localboolean · default: falsedeprecated If
true, the request retrieves information from the local node only.-
master_timeoutstring Duration · default: 30s 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.
Response
application/json
Response Type: map string to TemplateMapping