Skip to content

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

Merged
dakrone merged 2 commits intoelastic:7.xfrom
dakrone:backport/7.x/pr-56842
May 19, 2020
Merged

[7.x] Add template simulation API for simulating template composition (#56842)#56924
dakrone merged 2 commits intoelastic:7.xfrom
dakrone:backport/7.x/pr-56842

Conversation

@dakrone
Copy link
Copy Markdown
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 DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v7.9.0 labels May 18, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. 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 DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants