Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Add template simulation API for simulating template composition (#56842) #56924

Merged
merged 2 commits into from
May 19, 2020

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented May 18, 2020

Backports the following commits to 7.x:

…tic#56842)

This adds an API for simulating template composition with or without an index template.

It looks like:

```
POST /_index_template/_simulate/my-template
```

To simulate a template named `my-template` that already exists, or, to simulate a template that does
not already exist:

```
POST /_index_template/_simulate
{
  "index_patterns": ["my-index"]
  "composed_of": ["ct1", "ct2"],
}
```

This is related to elastic#55686, which adds an API to simulate composition based on an index name (hence
the `_simulate_index` vs `_simulate`).

This commit also adds reference documentation for both simulation APIs.

Relates to elastic#53101
Resolves elastic#56390
Resolves elastic#56255
@dakrone dakrone added backport :Data Management/Indices APIs APIs to create and manage indices and templates v7.9.0 labels May 18, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Indices APIs)

@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label May 18, 2020
@dakrone dakrone merged commit e208925 into elastic:7.x May 19, 2020
@dakrone dakrone deleted the backport/7.x/pr-56842 branch May 19, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants