2018-11-27 20:40:49 -05:00
|
|
|
--
|
|
|
|
:api: get-templates
|
|
|
|
:request: GetIndexTemplatesRequest
|
|
|
|
:response: GetIndexTemplatesResponse
|
|
|
|
--
|
|
|
|
|
|
|
|
[id="{upid}-{api}"]
|
2018-06-11 11:06:28 -04:00
|
|
|
=== Get Templates API
|
|
|
|
|
|
|
|
The Get Templates API allows to retrieve a list of index templates by name.
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-06-11 11:06:28 -04:00
|
|
|
==== Get Index Templates Request
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
A +{request}+ specifies one or several names of the index templates to get.
|
2018-06-11 11:06:28 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-06-11 11:06:28 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> A single index template name
|
|
|
|
<2> Multiple index template names
|
|
|
|
<3> An index template name using wildcard
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-masterTimeout]
|
2018-06-11 11:06:28 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Timeout to connect to the master node as a `TimeValue`
|
|
|
|
<2> Timeout to connect to the master node as a `String`
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
include::../execution.asciidoc[]
|
2018-06-11 11:06:28 -04:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-06-11 11:06:28 -04:00
|
|
|
==== Get Templates Response
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
The returned +{response}+ consists a list of matching index templates.
|
2018-06-11 11:06:28 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-06-11 11:06:28 -04:00
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
<1> A list of matching index templates
|