71 lines
4.0 KiB
Plaintext
71 lines
4.0 KiB
Plaintext
[[reference-cluster-exists_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 <version> ||
|
|
|| ||
|
|
|| ||
|
|
|| ||
|
|
===========================================================================================================================
|
|
////////
|
|
++++
|
|
<style>
|
|
.lang-ts a.xref {
|
|
text-decoration: underline !important;
|
|
}
|
|
</style>
|
|
++++
|
|
|
|
[[client.cluster.existsComponentTemplate]]
|
|
== client.cluster.existsComponentTemplate
|
|
|
|
Check component templates. Returns information about whether a particular component template exists.
|
|
|
|
{ref}/indices-component-template.html[{es} documentation]
|
|
[discrete]
|
|
== Function signature
|
|
|
|
[source,ts]
|
|
----
|
|
(ClusterExistsComponentTemplateRequest, options?): Promise<ClusterExistsComponentTemplateResponse>
|
|
----
|
|
|
|
[discrete]
|
|
=== Request
|
|
|
|
[source,ts,subs=+macros]
|
|
----
|
|
interface ClusterExistsComponentTemplateRequest extends <<RequestBase>> {
|
|
name: <<Names>>
|
|
master_timeout?: <<Duration>>
|
|
local?: boolean
|
|
}
|
|
|
|
----
|
|
|
|
[discrete]
|
|
=== Response
|
|
|
|
[source,ts,subs=+macros]
|
|
----
|
|
type ClusterExistsComponentTemplateResponse = boolean
|
|
|
|
----
|
|
|