Skip to content

Commit ef1ecc0

Browse files
Fix cluster.put_component_template API request body
Co-authored-by: Laurent Saint-Félix <[email protected]>
1 parent 02cfb84 commit ef1ecc0

File tree

3 files changed

+35
-51
lines changed

3 files changed

+35
-51
lines changed

output/schema/schema.json

Lines changed: 15 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,27 @@ export interface Request extends RequestBase {
4343
master_timeout?: Duration
4444
}
4545
body: {
46+
/**
47+
* The template to be applied which includes mappings, settings, or aliases configuration.
48+
*/
4649
template: IndexState
47-
aliases?: Dictionary<string, AliasDefinition>
48-
mappings?: TypeMapping
49-
settings?: IndexSettings
50+
/**
51+
* Version number used to manage component templates externally.
52+
* This number isn't automatically generated or incremented by Elasticsearch.
53+
*/
5054
version?: VersionNumber
51-
/** @doc_id mapping-meta-field */
55+
/**
56+
* Optional user metadata about the component template.
57+
* May have any contents. This map is not automatically generated by Elasticsearch.
58+
* @doc_id mapping-meta-field
59+
*/
5260
_meta?: Metadata
61+
/**
62+
* This setting overrides the value of the `action.auto_create_index` cluster setting.
63+
* If set to `true` in a template, then indices can be automatically created using that
64+
* template even if auto-creation of indices is disabled via `actions.auto_create_index`.
65+
* If set to `false` then data streams matching the template must always be explicitly created.
66+
*/
67+
allow_auto_create?: boolean
5368
}
5469
}

0 commit comments

Comments
 (0)