# List installed templates

**URL:** <https://discuss.elastic.co/t/list-installed-templates/10295>\
**Category:** Elasticsearch\
**Created:** [January 10, 2013, 1:49pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295 "2013-01-10T13:49:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [January 10, 2013, 1:49pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295/1 "2013-01-10T13:49:58Z")

</div>

From the api  
docs [http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html)  
it seems that you cannot get a list of templates that are active.  
I just couldn't remember whether I had set a template or not (which I found  
out of course by "guessing" the template name and doing a get request for  
it)...

Is it there? I tried GET /\_template, but that's a 404.

So I found it after al in the /\_cluster/state, but maybe the /\_template  
could be mapped to the map of templates?

--

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 10, 2013, 1:55pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295/2 "2013-01-10T13:55:43Z")

</div>

IMHO it makes sense to have it. You should open an issue for it.

Le 10 janvier 2013 à 14:49, Jaap Taal [jaap@q42.nl](mailto:jaap@q42.nl) a écrit :

> From the api docs  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html)  
> it seems that you cannot get a list of templates that are active.  
> I just couldn't remember whether I had set a template or not (which I found  
> out of course by "guessing" the template name and doing a get request for  
> it)...
> 
> Is it there? I tried GET /\_template, but that's a 404.
> 
> So I found it after al in the /\_cluster/state, but maybe the /\_template could  
> be mapped to the map of templates?
> 
> --

--  
David Pilato  
[http://www.scrutmydocs.org/](http://www.scrutmydocs.org/)  
[http://dev.david.pilato.fr/](http://dev.david.pilato.fr/)  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

---

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [January 10, 2013, 2:38pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295/3 "2013-01-10T14:38:33Z")

</div>

Created the issue:

> <https://github.com/elastic/elasticsearch/issues/2532>
>
> /\_template shows:
> No handler found for uri \[/\_template\] and method \[GET\]
> 
> It wou…ld make sense to list the templates as they are listed in the /\_cluster/state call.
> 
> See also:
> https://groups.google.com/forum/?fromgroups=#!topic/elasticsearch/wnGOnT-JTQo

On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:

> From the api docs  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.htmlit) seems that you cannot get a list of templates that are active.  
> I just couldn't remember whether I had set a template or not (which I  
> found out of course by "guessing" the template name and doing a get request  
> for it)...
> 
> Is it there? I tried GET /\_template, but that's a 404.
> 
> So I found it after al in the /\_cluster/state, but maybe the /\_template  
> could be mapped to the map of templates?

--

---

<div class="post-metadata">

**Author:** ![Benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@Benoit](https://discuss.elastic.co/u/Benoit)\
**Post date:** [January 14, 2013, 5:01pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295/4 "2013-01-14T17:01:44Z")

</div>

Hi,

> On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:
> 
> > Is it there? I tried GET /\_template, but that's a 404.
> > 
> > I've looked for this one today, so yes the REST endpoint is\* \*surprisingly  
> > missing.

Benoît

--

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 14, 2013, 6:20pm UTC](https://discuss.elastic.co/t/list-installed-templates/10295/5 "2013-01-14T18:20:36Z")

</div>

PR is on the way: [Support for REST get ALL templates. Fix #2532 by dadoonet · Pull Request #2534 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/pull/2534)

By now, you can list templates by asking cluster state: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-state.html)

HTH

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 janv. 2013 à 18:01, Benoît [benoit.intrw@gmail.com](mailto:benoit.intrw@gmail.com) a écrit :

> Hi,
> 
> > On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:
> > 
> > > Is it there? I tried GET /\_template, but that's a 404.  
> > > I've looked for this one today, so yes the REST endpoint is surprisingly missing.
> 
> ## Benoît

--

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:56am UTC](https://discuss.elastic.co/t/list-installed-templates/10295/6 "2017-07-06T02:56:36Z")

</div>


