mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> Co-authored-by: Zaeem <zaeemarshad@users.noreply.github.com>
This commit is contained in:
parent
0b1e2172e1
commit
6db8ca4113
@ -114,6 +114,8 @@ include::indices/delete-component-template.asciidoc[]
|
||||
|
||||
include::indices/delete-index-template.asciidoc[]
|
||||
|
||||
include::indices/delete-index-template-v1.asciidoc[]
|
||||
|
||||
include::indices/flush.asciidoc[]
|
||||
|
||||
include::indices/forcemerge.asciidoc[]
|
||||
|
52
docs/reference/indices/delete-index-template-v1.asciidoc
Normal file
52
docs/reference/indices/delete-index-template-v1.asciidoc
Normal file
@ -0,0 +1,52 @@
|
||||
[[indices-delete-template-v1]]
|
||||
=== Delete index template API
|
||||
++++
|
||||
<titleabbrev>Delete index template (legacy)</titleabbrev>
|
||||
++++
|
||||
|
||||
IMPORTANT: This documentation is about <<indices-templates-v1,legacy index
|
||||
templates>>, which are deprecated and will be replaced by the composable
|
||||
templates introduced in {es} 7.8. For information about composable templates,
|
||||
<<indices-templates>>.
|
||||
|
||||
Deletes a legacy index template.
|
||||
|
||||
////
|
||||
[source,console]
|
||||
--------------------------------------------------
|
||||
PUT _template/my-legacy-index-template
|
||||
{
|
||||
"index_patterns" : ["te*"],
|
||||
"settings": {
|
||||
"number_of_shards": 1
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
// TESTSETUP
|
||||
////
|
||||
|
||||
[source,console]
|
||||
--------------------------------------------------
|
||||
DELETE /_template/my-legacy-index-template
|
||||
--------------------------------------------------
|
||||
|
||||
|
||||
[[delete-template-api-v1-request]]
|
||||
==== {api-request-title}
|
||||
|
||||
`DELETE /_template/<legacy-index-template>`
|
||||
|
||||
|
||||
[[delete-template-api-v1-path-params]]
|
||||
==== {api-path-parms-title}
|
||||
|
||||
`<legacy-index-template>`::
|
||||
(Required, string)
|
||||
Comma-separated list of legacy index templates to delete. Wildcard (`*`)
|
||||
expressions are supported.
|
||||
|
||||
|
||||
[[delete-template-api-v1-query-params]]
|
||||
==== {api-query-parms-title}
|
||||
|
||||
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=timeoutparms]
|
@ -4,32 +4,34 @@
|
||||
<titleabbrev>Delete index template</titleabbrev>
|
||||
++++
|
||||
|
||||
Deletes an index template.
|
||||
Deletes an <<index-templates,index template>>.
|
||||
|
||||
////
|
||||
[source,console]
|
||||
--------------------------------------------------
|
||||
PUT _template/template_1
|
||||
----
|
||||
PUT /_index_template/my-index-template
|
||||
{
|
||||
"index_patterns" : ["te*"],
|
||||
"settings": {
|
||||
"template": {
|
||||
"settings": {
|
||||
"number_of_shards": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
----
|
||||
// TESTSETUP
|
||||
////
|
||||
|
||||
[source,console]
|
||||
--------------------------------------------------
|
||||
DELETE /_template/template_1
|
||||
--------------------------------------------------
|
||||
----
|
||||
DELETE /_index_template/my-index-template
|
||||
----
|
||||
|
||||
|
||||
[[delete-template-api-request]]
|
||||
==== {api-request-title}
|
||||
|
||||
`DELETE /_template/<index-template>`
|
||||
`DELETE /_index_template/<index-template>`
|
||||
|
||||
|
||||
[[delete-template-api-desc]]
|
||||
|
@ -531,8 +531,8 @@ end::index-metric[]
|
||||
tag::index-template[]
|
||||
`<index-template>`::
|
||||
(Required, string)
|
||||
Comma-separated list or wildcard expression of index template names
|
||||
used to limit the request.
|
||||
Comma-separated list of index template names used to limit the request. Wildcard
|
||||
(`*`) expressions are supported.
|
||||
end::index-template[]
|
||||
|
||||
tag::component-template[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user