Search + K

Command Palette

Search for a command to run...

Sign In

Get legacy index templates

Deprecated
GET /_template
Copy endpoint

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.

Required authorization

  • Cluster privileges: manage_index_templates

Parameters

query Query Parameters

Name Type
flat_settings

If true, returns settings in flat format.

boolean
local deprecated

If true, the request retrieves information from the local node only.

boolean
master_timeout

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.

type TypesDuration = string | "-1" | "0"

Responses

200 application/json
{ }