Files
elasticsearch-js/docs/reference-indices-put_index_template.asciidoc
2024-12-05 14:46:51 -06:00

84 lines
4.4 KiB
Plaintext

[[reference-indices-put_index_template]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
=== client.indices.putIndexTemplate
Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
{ref}/indices-put-template.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(IndicesPutIndexTemplateRequest, options?): Promise<IndicesPutIndexTemplateResponse>
----
[discrete]
==== IndicesPutIndexTemplateRequest
[pass]
++++
<pre>
++++
interface IndicesPutIndexTemplateRequest extends <<RequestBase>> {
name: <<Name>>
create?: boolean
master_timeout?: <<Duration>>
cause?: string
index_patterns?: <<Indices>>
composed_of?: <<Name>>[]
template?: IndicesPutIndexTemplateIndexTemplateMapping
data_stream?: IndicesDataStreamVisibility
priority?: number
version?: <<VersionNumber>>
_meta?: <<Metadata>>
allow_auto_create?: boolean
ignore_missing_component_templates?: string[]
deprecated?: boolean
}
[pass]
++++
</pre>
++++
[discrete]
==== IndicesPutIndexTemplateResponse
[pass]
++++
<pre>
++++
type IndicesPutIndexTemplateResponse = <<AcknowledgedResponseBase>>
[pass]
++++
</pre>
++++