Skip to content

[Backport 8.6] Fix cluster.put_component_template API request body #2040

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

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 15 additions & 44 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,27 @@ export interface Request extends RequestBase {
master_timeout?: Duration
}
body: {
/**
* The template to be applied which includes mappings, settings, or aliases configuration.
*/
template: IndexState
aliases?: Dictionary<string, AliasDefinition>
mappings?: TypeMapping
settings?: IndexSettings
/**
* Version number used to manage component templates externally.
* This number isn't automatically generated or incremented by Elasticsearch.
*/
version?: VersionNumber
/** @doc_id mapping-meta-field */
/**
* Optional user metadata about the component template.
* May have any contents. This map is not automatically generated by Elasticsearch.
* @doc_id mapping-meta-field
*/
_meta?: Metadata
/**
* This setting overrides the value of the `action.auto_create_index` cluster setting.
* If set to `true` in a template, then indices can be automatically created using that
* template even if auto-creation of indices is disabled via `actions.auto_create_index`.
* If set to `false` then data streams matching the template must always be explicitly created.
*/
allow_auto_create?: boolean
}
}