74 lines
4.5 KiB
Plaintext
74 lines
4.5 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`
|
|
|
|
[source,ts]
|
|
----
|
|
interface IndicesPutIndexTemplateRequest extends <<shared-type-request-base, RequestBase>> {
|
|
name: <<shared-type-name, Name>>
|
|
create?: boolean
|
|
master_timeout?: <<shared-type-duration, Duration>>
|
|
cause?: string
|
|
index_patterns?: <<shared-type-indices, Indices>>
|
|
composed_of?: <<shared-type-name, Name>>[]
|
|
template?: IndicesPutIndexTemplateIndexTemplateMapping
|
|
data_stream?: IndicesDataStreamVisibility
|
|
priority?: <<shared-type-long, long>>
|
|
version?: <<shared-type-version-number, VersionNumber>>
|
|
_meta?: <<shared-type-metadata, Metadata>>
|
|
allow_auto_create?: boolean
|
|
ignore_missing_component_templates?: string[]
|
|
deprecated?: boolean
|
|
}
|
|
----
|
|
|
|
[discrete]
|
|
===== `IndicesPutIndexTemplateResponse`
|
|
|
|
[source,ts]
|
|
----
|
|
type IndicesPutIndexTemplateResponse = <<shared-type-acknowledged-response-base, AcknowledgedResponseBase>>
|
|
----
|
|
|