1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- [[indices-template-exists]]
- === Index template exists API
- ++++
- <titleabbrev>Index template exists</titleabbrev>
- ++++
- Checks if an index template exists.
- [source,js]
- -----------------------------------------------
- HEAD /_template/template_1
- -----------------------------------------------
- // CONSOLE
- [[template-exists-api-request]]
- ==== {api-request-title}
- `HEAD /_template/<index-template>`
- [[template-exists-api-desc]]
- ==== {api-description-title}
- Use the index template exists API
- to determine whether one or more index templates exist.
- include::templates.asciidoc[tag=index-template-def]
- [[template-exists-api-path-params]]
- ==== {api-path-parms-title}
- include::{docdir}/rest-api/common-parms.asciidoc[tag=index-template]
- [[template-exists-api-query-params]]
- ==== {api-query-parms-title}
- include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
- include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
- include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
- [[template-exists-api-response-codes]]
- ==== {api-response-codes-title}
- `200`::
- Indicates all specified index templates exist.
- `404`::
- Indicates one or more specified index templates **do not** exist.
|