Get legacy index templates Deprecated Generally available
All methods and paths for this operation:
GET /_template
GET /_template/{name}
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
Path parameters
-
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_all
or*
.
GET /_template/{name}
Console
GET /_template/.monitoring-*
resp = client.indices.get_template( name=".monitoring-*", )
const response = await client.indices.getTemplate({ name: ".monitoring-*", });
response = client.indices.get_template( name: ".monitoring-*" )
$resp = $client->indices()->getTemplate([ "name" => ".monitoring-*", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_template/.monitoring-*"