[[reference-cluster-get_component_template]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.cluster.getComponentTemplate Get component templates. Retrieves information about component templates. {ref}/indices-component-template.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (ClusterGetComponentTemplateRequest, options?): Promise ---- [discrete] ===== `ClusterGetComponentTemplateRequest` [source,ts] ---- interface ClusterGetComponentTemplateRequest extends <> { name?: <> flat_settings?: boolean include_defaults?: boolean local?: boolean master_timeout?: <> } ---- [discrete] ===== `ClusterGetComponentTemplateResponse` [source,ts] ---- interface ClusterGetComponentTemplateResponse { component_templates: ClusterComponentTemplate[] } ----