templates.asciidoc 639 B

1234567891011121314151617181920
  1. [[cat-templates]]
  2. == cat templates
  3. The `templates` command provides information about existing templates.
  4. [source, sh]
  5. --------------------------------------------------
  6. % curl 'localhost:9200/_cat/templates?v=true'
  7. name template order version
  8. template0 te* 0
  9. template1 tea* 1
  10. template2 teak* 2 7
  11. --------------------------------------------------
  12. The output shows that there are three existing templates,
  13. with template_2 having a version value.
  14. The endpoint also supports giving a template name or pattern in the url
  15. to filter the results, for example `/_cat/templates/template*` or
  16. `/_cat/templates/template0`.