-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
specification/indices/simulate_index_template/indicesSimulateIndexResponseExample1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# summary: indices/simulate-index.asciidoc:188 | ||
description: A successful response from `POST /_index_template/_simulate_index/my-index-000001`. | ||
# type: response | ||
# response_code: 200 | ||
value: "{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \ | ||
\ \"number_of_shards\" : \"2\",\n \"number_of_replicas\" : \"0\",\n \ | ||
\ \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n\ | ||
\ \"_tier_preference\" : \"data_content\"\n }\n \ | ||
\ }\n }\n }\n },\n \"mappings\" : {\n \"properties\" : {\n\ | ||
\ \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n\ | ||
\ },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\"\ | ||
\ : \"template_1\",\n \"index_patterns\" : [\n \"my-index-*\"\n \ | ||
\ ]\n }\n ]\n}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
specification/indices/simulate_template/indicesSimulateTemplateRequestExample1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# summary: | ||
# method_request: POST /_index_template/_simulate | ||
description: > | ||
To see what settings will be applied by a template before you add it to the cluster, you can pass a template configuration in the request body. | ||
The specified template is used for the simulation if it has a higher priority than existing templates. | ||
# type: request | ||
value: "{\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"ct2\"],\n\ | ||
\ \"priority\": 10,\n \"template\": {\n \"settings\": {\n \"index.number_of_replicas\"\ | ||
: 1\n }\n }\n}" |
14 changes: 14 additions & 0 deletions
14
specification/indices/simulate_template/indicesSimulateTemplateResponseExample2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# summary: | ||
description: > | ||
A successful response from `POST /_index_template/_simulate` with a template configuration in the request body. | ||
The response shows any overlapping templates with a lower priority. | ||
# type: response | ||
# response_code: 200 | ||
value: "{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \ | ||
\ \"number_of_replicas\" : \"1\",\n \"routing\" : {\n \"allocation\"\ | ||
\ : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\ | ||
\n }\n }\n }\n }\n },\n \"mappings\" : {\n\ | ||
\ \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\ | ||
\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n\ | ||
\ {\n \"name\" : \"final-template\",\n \"index_patterns\" : [\n \ | ||
\ \"my-index-*\"\n ]\n }\n ]\n}" |