OpenSearch/client
Andrei Dan 6b886b0b7a
[7.x] Add simulate template composition API _index_template/_simulate_index/{name} (#55686) (#55922)
This adds a new api to simulate matching the given index name against the
 index templates in the system.

The syntax for the new API takes the following form:

POST _index_template/_simulate_index/{index_name}
{
  "index_patterns": ["logs-*"],
  "priority": 15,
  "template": {
	"settings": {
		"number_of_shards": 3
	}
       ...
   }
}

Where the body is optional, but we support the entire body used by the
PUT _index_template/{name} api. When the body is specified we'll simulate
matching the given index against a system that'd have the given index
template together with the index templates that exist in the system.

The response, in both cases, will return the matching template's resolved
settings, mappings and aliases, together with a special field that'll print any
overlapping templates and their corresponding index patterns.

(cherry picked from commit 1a5845edce1f445c58e094e9a3b6792e21e543b0)
Signed-off-by: Andrei Dan <andrei.dan@elastic.co>
2020-04-29 14:57:44 +01:00
..
benchmark Rename MetaData to Metadata in all of the places (#54519) 2020-03-31 17:24:38 -04:00
client-benchmark-noop-api-plugin Remove Xlint exclusions from gradle files 2020-02-20 14:12:05 +00:00
rest Remove deprecated third-party methods from tests (#55255) (#55269) 2020-04-15 17:54:47 -04:00
rest-high-level [7.x] Add simulate template composition API _index_template/_simulate_index/{name} (#55686) (#55922) 2020-04-29 14:57:44 +01:00
sniffer Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
test Use task avoidance with forbidden apis (#55034) 2020-04-15 13:27:53 -07:00
transport [7.x] Re-add origin url information to publish POM files (#55173) 2020-04-14 13:24:15 -07:00