OpenSearch/docs/java-rest/high-level/indices/simulate_index_template.asciidoc
Lee Hinman c0f732b9f6
[7.x] Rename template V2 classes to ComposableTemplate (#57183) (#57232)
Backports the following commits to 7.x:

    Rename template V2 classes to ComposableTemplate (#57183)
2020-05-27 11:01:59 -06:00

40 lines
1.4 KiB
Plaintext

--
:api: simulate-index-template
:request: SimulateIndexTemplateRequest
:response: SimulateIndexTemplateResponse
--
[id="{upid}-{api}"]
=== Simulate Index Template API
[id="{upid}-{api}-request"]
==== Simulate Index Template Request
A +{request}+ specifies the `indexName` to simulate matching against the
templates in the system.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
<1> The name of the index
<2> Optionally, defines a new template
include::../execution.asciidoc[]
[id="{upid}-{api}-response"]
==== Simulate Index Template Response
The returned +{response}+ includes a resolved `Template` object containing
the resolved settings, mappings and aliases of the index template that matched
and would be applied to the index with the provided name (if any). It will
also return a `Map` of index templates (both legacy and composable) names and their
corresponding index patterns:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> Resolved template configuration that would be applied when creating the index with the provided name
<2> Overlapping index templates and their corresponding index patterns