80 lines
4.2 KiB
Plaintext
80 lines
4.2 KiB
Plaintext
[[reference-indices-put_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.putTemplate
|
|
|
|
Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.
|
|
|
|
{ref}/indices-templates-v1.html[{es} documentation]
|
|
|
|
[discrete]
|
|
==== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(IndicesPutTemplateRequest, options?): Promise<IndicesPutTemplateResponse>
|
|
----
|
|
|
|
[discrete]
|
|
==== IndicesPutTemplateRequest
|
|
|
|
[pass]
|
|
++++
|
|
<pre>
|
|
++++
|
|
interface IndicesPutTemplateRequest extends <<RequestBase>> {
|
|
name: <<Name>>
|
|
create?: boolean
|
|
master_timeout?: <<Duration>>
|
|
cause?: string
|
|
aliases?: Record<<<IndexName>>, IndicesAlias>
|
|
index_patterns?: string | string[]
|
|
mappings?: MappingTypeMapping
|
|
order?: number
|
|
settings?: IndicesIndexSettings
|
|
version?: <<VersionNumber>>
|
|
}
|
|
|
|
[pass]
|
|
++++
|
|
</pre>
|
|
++++
|
|
[discrete]
|
|
==== IndicesPutTemplateResponse
|
|
|
|
[pass]
|
|
++++
|
|
<pre>
|
|
++++
|
|
type IndicesPutTemplateResponse = <<AcknowledgedResponseBase>>
|
|
|
|
[pass]
|
|
++++
|
|
</pre>
|
|
++++
|