@elastic/elasticsearch 8.14.0 → 8.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog-info.yaml +9 -9
- package/lib/api/api/async_search.d.ts +8 -8
- package/lib/api/api/async_search.js +28 -4
- package/lib/api/api/async_search.js.map +1 -1
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/autoscaling.js +25 -4
- package/lib/api/api/autoscaling.js.map +1 -1
- package/lib/api/api/bulk.d.ts +2 -2
- package/lib/api/api/bulk.js +7 -1
- package/lib/api/api/bulk.js.map +1 -1
- package/lib/api/api/capabilities.d.ts +14 -0
- package/lib/api/api/capabilities.js +42 -0
- package/lib/api/api/capabilities.js.map +1 -0
- package/lib/api/api/cat.d.ts +51 -51
- package/lib/api/api/cat.js +155 -26
- package/lib/api/api/cat.js.map +1 -1
- package/lib/api/api/ccr.d.ts +13 -13
- package/lib/api/api/ccr.js +88 -13
- package/lib/api/api/ccr.js.map +1 -1
- package/lib/api/api/clear_scroll.d.ts +2 -2
- package/lib/api/api/clear_scroll.js +7 -1
- package/lib/api/api/clear_scroll.js.map +1 -1
- package/lib/api/api/close_point_in_time.d.ts +2 -2
- package/lib/api/api/close_point_in_time.js +4 -1
- package/lib/api/api/close_point_in_time.js.map +1 -1
- package/lib/api/api/cluster.d.ts +24 -24
- package/lib/api/api/cluster.js +89 -16
- package/lib/api/api/cluster.js.map +1 -1
- package/lib/api/api/connector.d.ts +245 -0
- package/lib/api/api/connector.js +1036 -0
- package/lib/api/api/connector.js.map +1 -0
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/count.js +7 -1
- package/lib/api/api/count.js.map +1 -1
- package/lib/api/api/create.d.ts +2 -2
- package/lib/api/api/create.js +8 -1
- package/lib/api/api/create.js.map +1 -1
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/dangling_indices.js +18 -3
- package/lib/api/api/dangling_indices.js.map +1 -1
- package/lib/api/api/delete.d.ts +2 -2
- package/lib/api/api/delete.js +8 -1
- package/lib/api/api/delete.js.map +1 -1
- package/lib/api/api/delete_by_query.d.ts +2 -2
- package/lib/api/api/delete_by_query.js +7 -1
- package/lib/api/api/delete_by_query.js.map +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/delete_by_query_rethrottle.js +7 -1
- package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/delete_script.d.ts +2 -2
- package/lib/api/api/delete_script.js +7 -1
- package/lib/api/api/delete_script.js.map +1 -1
- package/lib/api/api/enrich.d.ts +8 -8
- package/lib/api/api/enrich.js +32 -5
- package/lib/api/api/enrich.js.map +1 -1
- package/lib/api/api/eql.d.ts +7 -7
- package/lib/api/api/eql.js +28 -4
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +16 -2
- package/lib/api/api/esql.js +47 -1
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +2 -2
- package/lib/api/api/exists.js +8 -1
- package/lib/api/api/exists.js.map +1 -1
- package/lib/api/api/exists_source.d.ts +2 -2
- package/lib/api/api/exists_source.js +8 -1
- package/lib/api/api/exists_source.js.map +1 -1
- package/lib/api/api/explain.d.ts +2 -2
- package/lib/api/api/explain.js +8 -1
- package/lib/api/api/explain.js.map +1 -1
- package/lib/api/api/features.d.ts +2 -2
- package/lib/api/api/features.js +8 -2
- package/lib/api/api/features.js.map +1 -1
- package/lib/api/api/field_caps.d.ts +2 -2
- package/lib/api/api/field_caps.js +7 -1
- package/lib/api/api/field_caps.js.map +1 -1
- package/lib/api/api/fleet.d.ts +3 -3
- package/lib/api/api/fleet.js +39 -6
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +1 -1
- package/lib/api/api/get.js +8 -1
- package/lib/api/api/get.js.map +1 -1
- package/lib/api/api/get_script.d.ts +2 -2
- package/lib/api/api/get_script.js +7 -1
- package/lib/api/api/get_script.js.map +1 -1
- package/lib/api/api/get_script_context.d.ts +1 -1
- package/lib/api/api/get_script_context.js +4 -1
- package/lib/api/api/get_script_context.js.map +1 -1
- package/lib/api/api/get_script_languages.d.ts +1 -1
- package/lib/api/api/get_script_languages.js +4 -1
- package/lib/api/api/get_script_languages.js.map +1 -1
- package/lib/api/api/get_source.d.ts +1 -1
- package/lib/api/api/get_source.js +8 -1
- package/lib/api/api/get_source.js.map +1 -1
- package/lib/api/api/graph.d.ts +2 -2
- package/lib/api/api/graph.js +7 -1
- package/lib/api/api/graph.js.map +1 -1
- package/lib/api/api/health_report.d.ts +1 -1
- package/lib/api/api/health_report.js +7 -1
- package/lib/api/api/health_report.js.map +1 -1
- package/lib/api/api/ilm.d.ts +16 -16
- package/lib/api/api/ilm.js +65 -11
- package/lib/api/api/ilm.js.map +1 -1
- package/lib/api/api/index.d.ts +2 -2
- package/lib/api/api/index.js +8 -1
- package/lib/api/api/index.js.map +1 -1
- package/lib/api/api/indices.d.ts +111 -111
- package/lib/api/api/indices.js +420 -59
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +17 -17
- package/lib/api/api/inference.js +42 -9
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/info.js +4 -1
- package/lib/api/api/info.js.map +1 -1
- package/lib/api/api/ingest.d.ts +33 -12
- package/lib/api/api/ingest.js +113 -6
- package/lib/api/api/ingest.js.map +1 -1
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/knn_search.js +7 -1
- package/lib/api/api/knn_search.js.map +1 -1
- package/lib/api/api/license.d.ts +10 -10
- package/lib/api/api/license.js +28 -7
- package/lib/api/api/license.js.map +1 -1
- package/lib/api/api/logstash.d.ts +6 -6
- package/lib/api/api/logstash.js +21 -3
- package/lib/api/api/logstash.js.map +1 -1
- package/lib/api/api/mget.d.ts +1 -1
- package/lib/api/api/mget.js +7 -1
- package/lib/api/api/mget.js.map +1 -1
- package/lib/api/api/migration.d.ts +3 -3
- package/lib/api/api/migration.js +15 -3
- package/lib/api/api/migration.js.map +1 -1
- package/lib/api/api/ml.d.ts +131 -131
- package/lib/api/api/ml.js +508 -73
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +1 -1
- package/lib/api/api/monitoring.js +7 -1
- package/lib/api/api/monitoring.js.map +1 -1
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch.js +7 -1
- package/lib/api/api/msearch.js.map +1 -1
- package/lib/api/api/msearch_template.d.ts +2 -2
- package/lib/api/api/msearch_template.js +7 -1
- package/lib/api/api/msearch_template.js.map +1 -1
- package/lib/api/api/mtermvectors.d.ts +1 -1
- package/lib/api/api/mtermvectors.js +7 -1
- package/lib/api/api/mtermvectors.js.map +1 -1
- package/lib/api/api/nodes.d.ts +14 -14
- package/lib/api/api/nodes.js +54 -7
- package/lib/api/api/nodes.js.map +1 -1
- package/lib/api/api/open_point_in_time.d.ts +2 -2
- package/lib/api/api/open_point_in_time.js +7 -1
- package/lib/api/api/open_point_in_time.js.map +1 -1
- package/lib/api/api/ping.d.ts +1 -1
- package/lib/api/api/ping.js +4 -1
- package/lib/api/api/ping.js.map +1 -1
- package/lib/api/api/profiling.d.ts +39 -0
- package/lib/api/api/{query_ruleset.js → profiling.js} +38 -41
- package/lib/api/api/profiling.js.map +1 -0
- package/lib/api/api/put_script.d.ts +2 -2
- package/lib/api/api/put_script.js +8 -1
- package/lib/api/api/put_script.js.map +1 -1
- package/lib/api/api/query_rules.d.ts +60 -0
- package/lib/api/api/query_rules.js +223 -0
- package/lib/api/api/query_rules.js.map +1 -0
- package/lib/api/api/rank_eval.d.ts +2 -2
- package/lib/api/api/rank_eval.js +7 -1
- package/lib/api/api/rank_eval.js.map +1 -1
- package/lib/api/api/reindex.d.ts +1 -1
- package/lib/api/api/reindex.js +4 -1
- package/lib/api/api/reindex.js.map +1 -1
- package/lib/api/api/reindex_rethrottle.d.ts +2 -2
- package/lib/api/api/reindex_rethrottle.js +7 -1
- package/lib/api/api/reindex_rethrottle.js.map +1 -1
- package/lib/api/api/render_search_template.d.ts +2 -2
- package/lib/api/api/render_search_template.js +7 -1
- package/lib/api/api/render_search_template.js.map +1 -1
- package/lib/api/api/rollup.d.ts +10 -10
- package/lib/api/api/rollup.js +56 -8
- package/lib/api/api/rollup.js.map +1 -1
- package/lib/api/api/scripts_painless_execute.d.ts +2 -2
- package/lib/api/api/scripts_painless_execute.js +4 -1
- package/lib/api/api/scripts_painless_execute.js.map +1 -1
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/scroll.js +7 -1
- package/lib/api/api/scroll.js.map +1 -1
- package/lib/api/api/search.d.ts +2 -2
- package/lib/api/api/search.js +7 -1
- package/lib/api/api/search.js.map +1 -1
- package/lib/api/api/search_application.d.ts +11 -11
- package/lib/api/api/search_application.js +68 -10
- package/lib/api/api/search_application.js.map +1 -1
- package/lib/api/api/search_mvt.d.ts +1 -1
- package/lib/api/api/search_mvt.js +11 -1
- package/lib/api/api/search_mvt.js.map +1 -1
- package/lib/api/api/search_shards.d.ts +1 -1
- package/lib/api/api/search_shards.js +7 -1
- package/lib/api/api/search_shards.js.map +1 -1
- package/lib/api/api/search_template.d.ts +2 -2
- package/lib/api/api/search_template.js +7 -1
- package/lib/api/api/search_template.js.map +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +4 -4
- package/lib/api/api/searchable_snapshots.js +29 -4
- package/lib/api/api/searchable_snapshots.js.map +1 -1
- package/lib/api/api/security.d.ts +110 -82
- package/lib/api/api/security.js +478 -60
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.js +21 -3
- package/lib/api/api/shutdown.js.map +1 -1
- package/lib/api/api/simulate.d.ts +18 -0
- package/lib/api/api/simulate.js +64 -0
- package/lib/api/api/simulate.js.map +1 -0
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/slm.js +48 -9
- package/lib/api/api/slm.js.map +1 -1
- package/lib/api/api/snapshot.d.ts +13 -13
- package/lib/api/api/snapshot.js +91 -12
- package/lib/api/api/snapshot.js.map +1 -1
- package/lib/api/api/sql.d.ts +6 -6
- package/lib/api/api/sql.js +33 -6
- package/lib/api/api/sql.js.map +1 -1
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/ssl.js +4 -1
- package/lib/api/api/ssl.js.map +1 -1
- package/lib/api/api/synonyms.d.ts +8 -8
- package/lib/api/api/synonyms.js +49 -7
- package/lib/api/api/synonyms.js.map +1 -1
- package/lib/api/api/tasks.d.ts +4 -4
- package/lib/api/api/tasks.js +18 -3
- package/lib/api/api/tasks.js.map +1 -1
- package/lib/api/api/terms_enum.d.ts +1 -1
- package/lib/api/api/terms_enum.js +7 -1
- package/lib/api/api/terms_enum.js.map +1 -1
- package/lib/api/api/termvectors.d.ts +1 -1
- package/lib/api/api/termvectors.js +8 -1
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +16 -2
- package/lib/api/api/text_structure.js +48 -2
- package/lib/api/api/text_structure.js.map +1 -1
- package/lib/api/api/transform.d.ts +26 -19
- package/lib/api/api/transform.js +94 -11
- package/lib/api/api/transform.js.map +1 -1
- package/lib/api/api/update.d.ts +1 -1
- package/lib/api/api/update.js +8 -1
- package/lib/api/api/update.js.map +1 -1
- package/lib/api/api/update_by_query.d.ts +2 -2
- package/lib/api/api/update_by_query.js +7 -1
- package/lib/api/api/update_by_query.js.map +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/update_by_query_rethrottle.js +7 -1
- package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/watcher.d.ts +14 -14
- package/lib/api/api/watcher.js +77 -13
- package/lib/api/api/watcher.js.map +1 -1
- package/lib/api/api/xpack.d.ts +4 -4
- package/lib/api/api/xpack.js +8 -2
- package/lib/api/api/xpack.js.map +1 -1
- package/lib/api/index.d.ts +18 -4
- package/lib/api/index.js +45 -7
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +428 -220
- package/lib/api/typesWithBodyKey.d.ts +444 -221
- package/package.json +3 -3
- package/lib/api/api/query_ruleset.d.ts +0 -39
- package/lib/api/api/query_ruleset.js.map +0 -1
package/lib/api/api/cat.d.ts
CHANGED
|
@@ -8,183 +8,183 @@ export default class Cat {
|
|
|
8
8
|
transport: Transport;
|
|
9
9
|
constructor(transport: Transport);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
11
|
+
* Retrieves the cluster’s index aliases, including filter and routing information. The API does not return data stream aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
|
|
12
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-alias.html | Elasticsearch API documentation}
|
|
13
13
|
*/
|
|
14
14
|
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatAliasesResponse>;
|
|
15
15
|
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatAliasesResponse, unknown>>;
|
|
16
16
|
aliases(this: That, params?: T.CatAliasesRequest | TB.CatAliasesRequest, options?: TransportRequestOptions): Promise<T.CatAliasesResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Provides a snapshot of
|
|
19
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
18
|
+
* Provides a snapshot of the number of shards allocated to each data node and their disk space. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
|
|
19
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-allocation.html | Elasticsearch API documentation}
|
|
20
20
|
*/
|
|
21
21
|
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatAllocationResponse>;
|
|
22
22
|
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatAllocationResponse, unknown>>;
|
|
23
23
|
allocation(this: That, params?: T.CatAllocationRequest | TB.CatAllocationRequest, options?: TransportRequestOptions): Promise<T.CatAllocationResponse>;
|
|
24
24
|
/**
|
|
25
|
-
* Returns information about
|
|
26
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
25
|
+
* Returns information about component templates in a cluster. Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get component template API.
|
|
26
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-component-templates.html | Elasticsearch API documentation}
|
|
27
27
|
*/
|
|
28
28
|
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatComponentTemplatesResponse>;
|
|
29
29
|
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatComponentTemplatesResponse, unknown>>;
|
|
30
30
|
componentTemplates(this: That, params?: T.CatComponentTemplatesRequest | TB.CatComponentTemplatesRequest, options?: TransportRequestOptions): Promise<T.CatComponentTemplatesResponse>;
|
|
31
31
|
/**
|
|
32
|
-
* Provides quick access to
|
|
33
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
32
|
+
* Provides quick access to a document count for a data stream, an index, or an entire cluster. NOTE: The document count only includes live documents, not deleted documents which have not yet been removed by the merge process. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the count API.
|
|
33
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-count.html | Elasticsearch API documentation}
|
|
34
34
|
*/
|
|
35
35
|
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatCountResponse>;
|
|
36
36
|
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatCountResponse, unknown>>;
|
|
37
37
|
count(this: That, params?: T.CatCountRequest | TB.CatCountRequest, options?: TransportRequestOptions): Promise<T.CatCountResponse>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
39
|
+
* Returns the amount of heap memory currently used by the field data cache on every data node in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes stats API.
|
|
40
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-fielddata.html | Elasticsearch API documentation}
|
|
41
41
|
*/
|
|
42
42
|
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatFielddataResponse>;
|
|
43
43
|
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatFielddataResponse, unknown>>;
|
|
44
44
|
fielddata(this: That, params?: T.CatFielddataRequest | TB.CatFielddataRequest, options?: TransportRequestOptions): Promise<T.CatFielddataResponse>;
|
|
45
45
|
/**
|
|
46
|
-
* Returns
|
|
47
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
46
|
+
* Returns the health status of a cluster, similar to the cluster health API. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the cluster health API. This API is often used to check malfunctioning clusters. To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats: `HH:MM:SS`, which is human-readable but includes no date information; `Unix epoch time`, which is machine-sortable and includes date information. The latter format is useful for cluster recoveries that take multiple days. You can use the cat health API to verify cluster health across multiple nodes. You also can use the API to track the recovery of a large cluster over a longer period of time.
|
|
47
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-health.html | Elasticsearch API documentation}
|
|
48
48
|
*/
|
|
49
49
|
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatHealthResponse>;
|
|
50
50
|
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatHealthResponse, unknown>>;
|
|
51
51
|
health(this: That, params?: T.CatHealthRequest | TB.CatHealthRequest, options?: TransportRequestOptions): Promise<T.CatHealthResponse>;
|
|
52
52
|
/**
|
|
53
53
|
* Returns help for the Cat APIs.
|
|
54
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
54
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat.html | Elasticsearch API documentation}
|
|
55
55
|
*/
|
|
56
56
|
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatHelpResponse>;
|
|
57
57
|
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatHelpResponse, unknown>>;
|
|
58
58
|
help(this: That, params?: T.CatHelpRequest | TB.CatHelpRequest, options?: TransportRequestOptions): Promise<T.CatHelpResponse>;
|
|
59
59
|
/**
|
|
60
|
-
* Returns information about indices:
|
|
61
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
60
|
+
* Returns high-level information about indices in a cluster, including backing indices for data streams. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index API. Use the cat indices API to get the following information for each index in a cluster: shard count; document count; deleted document count; primary store size; total store size of all shards, including shard replicas. These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents. To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
|
|
61
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-indices.html | Elasticsearch API documentation}
|
|
62
62
|
*/
|
|
63
63
|
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatIndicesResponse>;
|
|
64
64
|
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatIndicesResponse, unknown>>;
|
|
65
65
|
indices(this: That, params?: T.CatIndicesRequest | TB.CatIndicesRequest, options?: TransportRequestOptions): Promise<T.CatIndicesResponse>;
|
|
66
66
|
/**
|
|
67
|
-
* Returns information about the master node.
|
|
68
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
67
|
+
* Returns information about the master node, including the ID, bound IP address, and name. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
|
68
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-master.html | Elasticsearch API documentation}
|
|
69
69
|
*/
|
|
70
70
|
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMasterResponse>;
|
|
71
71
|
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMasterResponse, unknown>>;
|
|
72
72
|
master(this: That, params?: T.CatMasterRequest | TB.CatMasterRequest, options?: TransportRequestOptions): Promise<T.CatMasterResponse>;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
74
|
+
* Returns configuration and usage information about data frame analytics jobs. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get data frame analytics jobs statistics API.
|
|
75
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-dfanalytics.html | Elasticsearch API documentation}
|
|
76
76
|
*/
|
|
77
77
|
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlDataFrameAnalyticsResponse>;
|
|
78
78
|
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlDataFrameAnalyticsResponse, unknown>>;
|
|
79
79
|
mlDataFrameAnalytics(this: That, params?: T.CatMlDataFrameAnalyticsRequest | TB.CatMlDataFrameAnalyticsRequest, options?: TransportRequestOptions): Promise<T.CatMlDataFrameAnalyticsResponse>;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
82
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
81
|
+
* Returns configuration and usage information about datafeeds. This API returns a maximum of 10,000 datafeeds. If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get datafeed statistics API.
|
|
82
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-datafeeds.html | Elasticsearch API documentation}
|
|
83
83
|
*/
|
|
84
84
|
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlDatafeedsResponse>;
|
|
85
85
|
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlDatafeedsResponse, unknown>>;
|
|
86
86
|
mlDatafeeds(this: That, params?: T.CatMlDatafeedsRequest | TB.CatMlDatafeedsRequest, options?: TransportRequestOptions): Promise<T.CatMlDatafeedsResponse>;
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
88
|
+
* Returns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
|
|
89
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-anomaly-detectors.html | Elasticsearch API documentation}
|
|
90
90
|
*/
|
|
91
91
|
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlJobsResponse>;
|
|
92
92
|
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlJobsResponse, unknown>>;
|
|
93
93
|
mlJobs(this: That, params?: T.CatMlJobsRequest | TB.CatMlJobsRequest, options?: TransportRequestOptions): Promise<T.CatMlJobsResponse>;
|
|
94
94
|
/**
|
|
95
|
-
*
|
|
96
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
95
|
+
* Returns configuration and usage information about inference trained models. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get trained models statistics API.
|
|
96
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-trained-model.html | Elasticsearch API documentation}
|
|
97
97
|
*/
|
|
98
98
|
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatMlTrainedModelsResponse>;
|
|
99
99
|
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatMlTrainedModelsResponse, unknown>>;
|
|
100
100
|
mlTrainedModels(this: That, params?: T.CatMlTrainedModelsRequest | TB.CatMlTrainedModelsRequest, options?: TransportRequestOptions): Promise<T.CatMlTrainedModelsResponse>;
|
|
101
101
|
/**
|
|
102
|
-
* Returns information about custom node attributes.
|
|
103
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
102
|
+
* Returns information about custom node attributes. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
|
103
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-nodeattrs.html | Elasticsearch API documentation}
|
|
104
104
|
*/
|
|
105
105
|
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatNodeattrsResponse>;
|
|
106
106
|
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatNodeattrsResponse, unknown>>;
|
|
107
107
|
nodeattrs(this: That, params?: T.CatNodeattrsRequest | TB.CatNodeattrsRequest, options?: TransportRequestOptions): Promise<T.CatNodeattrsResponse>;
|
|
108
108
|
/**
|
|
109
|
-
* Returns
|
|
110
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
109
|
+
* Returns information about the nodes in a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
|
110
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-nodes.html | Elasticsearch API documentation}
|
|
111
111
|
*/
|
|
112
112
|
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatNodesResponse>;
|
|
113
113
|
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatNodesResponse, unknown>>;
|
|
114
114
|
nodes(this: That, params?: T.CatNodesRequest | TB.CatNodesRequest, options?: TransportRequestOptions): Promise<T.CatNodesResponse>;
|
|
115
115
|
/**
|
|
116
|
-
* Returns
|
|
117
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
116
|
+
* Returns cluster-level changes that have not yet been executed. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the pending cluster tasks API.
|
|
117
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-pending-tasks.html | Elasticsearch API documentation}
|
|
118
118
|
*/
|
|
119
119
|
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatPendingTasksResponse>;
|
|
120
120
|
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatPendingTasksResponse, unknown>>;
|
|
121
121
|
pendingTasks(this: That, params?: T.CatPendingTasksRequest | TB.CatPendingTasksRequest, options?: TransportRequestOptions): Promise<T.CatPendingTasksResponse>;
|
|
122
122
|
/**
|
|
123
|
-
* Returns
|
|
124
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
123
|
+
* Returns a list of plugins running on each node of a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
|
124
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-plugins.html | Elasticsearch API documentation}
|
|
125
125
|
*/
|
|
126
126
|
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatPluginsResponse>;
|
|
127
127
|
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatPluginsResponse, unknown>>;
|
|
128
128
|
plugins(this: That, params?: T.CatPluginsRequest | TB.CatPluginsRequest, options?: TransportRequestOptions): Promise<T.CatPluginsResponse>;
|
|
129
129
|
/**
|
|
130
|
-
* Returns information about
|
|
131
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
130
|
+
* Returns information about ongoing and completed shard recoveries. Shard recovery is the process of initializing a shard copy, such as restoring a primary shard from a snapshot or syncing a replica shard from a primary shard. When a shard recovery completes, the recovered shard is available for search and indexing. For data streams, the API returns information about the stream’s backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index recovery API.
|
|
131
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-recovery.html | Elasticsearch API documentation}
|
|
132
132
|
*/
|
|
133
133
|
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatRecoveryResponse>;
|
|
134
134
|
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatRecoveryResponse, unknown>>;
|
|
135
135
|
recovery(this: That, params?: T.CatRecoveryRequest | TB.CatRecoveryRequest, options?: TransportRequestOptions): Promise<T.CatRecoveryResponse>;
|
|
136
136
|
/**
|
|
137
|
-
* Returns
|
|
138
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
137
|
+
* Returns the snapshot repositories for a cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot repository API.
|
|
138
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-repositories.html | Elasticsearch API documentation}
|
|
139
139
|
*/
|
|
140
140
|
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatRepositoriesResponse>;
|
|
141
141
|
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatRepositoriesResponse, unknown>>;
|
|
142
142
|
repositories(this: That, params?: T.CatRepositoriesRequest | TB.CatRepositoriesRequest, options?: TransportRequestOptions): Promise<T.CatRepositoriesResponse>;
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
145
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
144
|
+
* Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the index segments API.
|
|
145
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-segments.html | Elasticsearch API documentation}
|
|
146
146
|
*/
|
|
147
147
|
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatSegmentsResponse>;
|
|
148
148
|
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatSegmentsResponse, unknown>>;
|
|
149
149
|
segments(this: That, params?: T.CatSegmentsRequest | TB.CatSegmentsRequest, options?: TransportRequestOptions): Promise<T.CatSegmentsResponse>;
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
151
|
+
* Returns information about the shards in a cluster. For data streams, the API returns information about the backing indices. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.
|
|
152
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-shards.html | Elasticsearch API documentation}
|
|
153
153
|
*/
|
|
154
154
|
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatShardsResponse>;
|
|
155
155
|
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatShardsResponse, unknown>>;
|
|
156
156
|
shards(this: That, params?: T.CatShardsRequest | TB.CatShardsRequest, options?: TransportRequestOptions): Promise<T.CatShardsResponse>;
|
|
157
157
|
/**
|
|
158
|
-
* Returns
|
|
159
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
158
|
+
* Returns information about the snapshots stored in one or more repositories. A snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get snapshot API.
|
|
159
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-snapshots.html | Elasticsearch API documentation}
|
|
160
160
|
*/
|
|
161
161
|
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatSnapshotsResponse>;
|
|
162
162
|
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatSnapshotsResponse, unknown>>;
|
|
163
163
|
snapshots(this: That, params?: T.CatSnapshotsRequest | TB.CatSnapshotsRequest, options?: TransportRequestOptions): Promise<T.CatSnapshotsResponse>;
|
|
164
164
|
/**
|
|
165
|
-
* Returns information about
|
|
166
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
165
|
+
* Returns information about tasks currently executing in the cluster. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the task management API.
|
|
166
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/tasks.html | Elasticsearch API documentation}
|
|
167
167
|
*/
|
|
168
168
|
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTasksResponse>;
|
|
169
169
|
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTasksResponse, unknown>>;
|
|
170
170
|
tasks(this: That, params?: T.CatTasksRequest | TB.CatTasksRequest, options?: TransportRequestOptions): Promise<T.CatTasksResponse>;
|
|
171
171
|
/**
|
|
172
|
-
* Returns information about
|
|
173
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
172
|
+
* Returns information about index templates in a cluster. You can use index templates to apply index settings and field mappings to new indices at creation. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the get index template API.
|
|
173
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-templates.html | Elasticsearch API documentation}
|
|
174
174
|
*/
|
|
175
175
|
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTemplatesResponse>;
|
|
176
176
|
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTemplatesResponse, unknown>>;
|
|
177
177
|
templates(this: That, params?: T.CatTemplatesRequest | TB.CatTemplatesRequest, options?: TransportRequestOptions): Promise<T.CatTemplatesResponse>;
|
|
178
178
|
/**
|
|
179
|
-
* Returns
|
|
180
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
179
|
+
* Returns thread pool statistics for each node in a cluster. Returned information includes all built-in thread pools and custom thread pools. IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications. For application consumption, use the nodes info API.
|
|
180
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-thread-pool.html | Elasticsearch API documentation}
|
|
181
181
|
*/
|
|
182
182
|
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatThreadPoolResponse>;
|
|
183
183
|
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatThreadPoolResponse, unknown>>;
|
|
184
184
|
threadPool(this: That, params?: T.CatThreadPoolRequest | TB.CatThreadPoolRequest, options?: TransportRequestOptions): Promise<T.CatThreadPoolResponse>;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
186
|
+
* Returns configuration and usage information about transforms. IMPORTANT: cat APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get transform statistics API.
|
|
187
|
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.15/cat-transforms.html | Elasticsearch API documentation}
|
|
188
188
|
*/
|
|
189
189
|
transforms(this: That, params?: T.CatTransformsRequest | TB.CatTransformsRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.CatTransformsResponse>;
|
|
190
190
|
transforms(this: That, params?: T.CatTransformsRequest | TB.CatTransformsRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.CatTransformsResponse, unknown>>;
|
package/lib/api/api/cat.js
CHANGED
|
@@ -52,7 +52,13 @@ class Cat {
|
|
|
52
52
|
method = 'GET';
|
|
53
53
|
path = '/_cat/aliases';
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
const meta = {
|
|
56
|
+
name: 'cat.aliases',
|
|
57
|
+
pathParts: {
|
|
58
|
+
name: params.name
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
56
62
|
}
|
|
57
63
|
async allocation(params, options) {
|
|
58
64
|
const acceptedPath = ['node_id'];
|
|
@@ -78,7 +84,13 @@ class Cat {
|
|
|
78
84
|
method = 'GET';
|
|
79
85
|
path = '/_cat/allocation';
|
|
80
86
|
}
|
|
81
|
-
|
|
87
|
+
const meta = {
|
|
88
|
+
name: 'cat.allocation',
|
|
89
|
+
pathParts: {
|
|
90
|
+
node_id: params.node_id
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
82
94
|
}
|
|
83
95
|
async componentTemplates(params, options) {
|
|
84
96
|
const acceptedPath = ['name'];
|
|
@@ -104,7 +116,13 @@ class Cat {
|
|
|
104
116
|
method = 'GET';
|
|
105
117
|
path = '/_cat/component_templates';
|
|
106
118
|
}
|
|
107
|
-
|
|
119
|
+
const meta = {
|
|
120
|
+
name: 'cat.component_templates',
|
|
121
|
+
pathParts: {
|
|
122
|
+
name: params.name
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
108
126
|
}
|
|
109
127
|
async count(params, options) {
|
|
110
128
|
const acceptedPath = ['index'];
|
|
@@ -130,7 +148,13 @@ class Cat {
|
|
|
130
148
|
method = 'GET';
|
|
131
149
|
path = '/_cat/count';
|
|
132
150
|
}
|
|
133
|
-
|
|
151
|
+
const meta = {
|
|
152
|
+
name: 'cat.count',
|
|
153
|
+
pathParts: {
|
|
154
|
+
index: params.index
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
134
158
|
}
|
|
135
159
|
async fielddata(params, options) {
|
|
136
160
|
const acceptedPath = ['fields'];
|
|
@@ -156,7 +180,13 @@ class Cat {
|
|
|
156
180
|
method = 'GET';
|
|
157
181
|
path = '/_cat/fielddata';
|
|
158
182
|
}
|
|
159
|
-
|
|
183
|
+
const meta = {
|
|
184
|
+
name: 'cat.fielddata',
|
|
185
|
+
pathParts: {
|
|
186
|
+
fields: params.fields
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
160
190
|
}
|
|
161
191
|
async health(params, options) {
|
|
162
192
|
const acceptedPath = [];
|
|
@@ -174,7 +204,10 @@ class Cat {
|
|
|
174
204
|
}
|
|
175
205
|
const method = 'GET';
|
|
176
206
|
const path = '/_cat/health';
|
|
177
|
-
|
|
207
|
+
const meta = {
|
|
208
|
+
name: 'cat.health'
|
|
209
|
+
};
|
|
210
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
178
211
|
}
|
|
179
212
|
async help(params, options) {
|
|
180
213
|
const acceptedPath = [];
|
|
@@ -192,7 +225,10 @@ class Cat {
|
|
|
192
225
|
}
|
|
193
226
|
const method = 'GET';
|
|
194
227
|
const path = '/_cat';
|
|
195
|
-
|
|
228
|
+
const meta = {
|
|
229
|
+
name: 'cat.help'
|
|
230
|
+
};
|
|
231
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
196
232
|
}
|
|
197
233
|
async indices(params, options) {
|
|
198
234
|
const acceptedPath = ['index'];
|
|
@@ -218,7 +254,13 @@ class Cat {
|
|
|
218
254
|
method = 'GET';
|
|
219
255
|
path = '/_cat/indices';
|
|
220
256
|
}
|
|
221
|
-
|
|
257
|
+
const meta = {
|
|
258
|
+
name: 'cat.indices',
|
|
259
|
+
pathParts: {
|
|
260
|
+
index: params.index
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
222
264
|
}
|
|
223
265
|
async master(params, options) {
|
|
224
266
|
const acceptedPath = [];
|
|
@@ -236,7 +278,10 @@ class Cat {
|
|
|
236
278
|
}
|
|
237
279
|
const method = 'GET';
|
|
238
280
|
const path = '/_cat/master';
|
|
239
|
-
|
|
281
|
+
const meta = {
|
|
282
|
+
name: 'cat.master'
|
|
283
|
+
};
|
|
284
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
240
285
|
}
|
|
241
286
|
async mlDataFrameAnalytics(params, options) {
|
|
242
287
|
const acceptedPath = ['id'];
|
|
@@ -262,7 +307,13 @@ class Cat {
|
|
|
262
307
|
method = 'GET';
|
|
263
308
|
path = '/_cat/ml/data_frame/analytics';
|
|
264
309
|
}
|
|
265
|
-
|
|
310
|
+
const meta = {
|
|
311
|
+
name: 'cat.ml_data_frame_analytics',
|
|
312
|
+
pathParts: {
|
|
313
|
+
id: params.id
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
266
317
|
}
|
|
267
318
|
async mlDatafeeds(params, options) {
|
|
268
319
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -288,7 +339,13 @@ class Cat {
|
|
|
288
339
|
method = 'GET';
|
|
289
340
|
path = '/_cat/ml/datafeeds';
|
|
290
341
|
}
|
|
291
|
-
|
|
342
|
+
const meta = {
|
|
343
|
+
name: 'cat.ml_datafeeds',
|
|
344
|
+
pathParts: {
|
|
345
|
+
datafeed_id: params.datafeed_id
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
292
349
|
}
|
|
293
350
|
async mlJobs(params, options) {
|
|
294
351
|
const acceptedPath = ['job_id'];
|
|
@@ -314,7 +371,13 @@ class Cat {
|
|
|
314
371
|
method = 'GET';
|
|
315
372
|
path = '/_cat/ml/anomaly_detectors';
|
|
316
373
|
}
|
|
317
|
-
|
|
374
|
+
const meta = {
|
|
375
|
+
name: 'cat.ml_jobs',
|
|
376
|
+
pathParts: {
|
|
377
|
+
job_id: params.job_id
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
318
381
|
}
|
|
319
382
|
async mlTrainedModels(params, options) {
|
|
320
383
|
const acceptedPath = ['model_id'];
|
|
@@ -340,7 +403,13 @@ class Cat {
|
|
|
340
403
|
method = 'GET';
|
|
341
404
|
path = '/_cat/ml/trained_models';
|
|
342
405
|
}
|
|
343
|
-
|
|
406
|
+
const meta = {
|
|
407
|
+
name: 'cat.ml_trained_models',
|
|
408
|
+
pathParts: {
|
|
409
|
+
model_id: params.model_id
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
344
413
|
}
|
|
345
414
|
async nodeattrs(params, options) {
|
|
346
415
|
const acceptedPath = [];
|
|
@@ -358,7 +427,10 @@ class Cat {
|
|
|
358
427
|
}
|
|
359
428
|
const method = 'GET';
|
|
360
429
|
const path = '/_cat/nodeattrs';
|
|
361
|
-
|
|
430
|
+
const meta = {
|
|
431
|
+
name: 'cat.nodeattrs'
|
|
432
|
+
};
|
|
433
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
362
434
|
}
|
|
363
435
|
async nodes(params, options) {
|
|
364
436
|
const acceptedPath = [];
|
|
@@ -376,7 +448,10 @@ class Cat {
|
|
|
376
448
|
}
|
|
377
449
|
const method = 'GET';
|
|
378
450
|
const path = '/_cat/nodes';
|
|
379
|
-
|
|
451
|
+
const meta = {
|
|
452
|
+
name: 'cat.nodes'
|
|
453
|
+
};
|
|
454
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
380
455
|
}
|
|
381
456
|
async pendingTasks(params, options) {
|
|
382
457
|
const acceptedPath = [];
|
|
@@ -394,7 +469,10 @@ class Cat {
|
|
|
394
469
|
}
|
|
395
470
|
const method = 'GET';
|
|
396
471
|
const path = '/_cat/pending_tasks';
|
|
397
|
-
|
|
472
|
+
const meta = {
|
|
473
|
+
name: 'cat.pending_tasks'
|
|
474
|
+
};
|
|
475
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
398
476
|
}
|
|
399
477
|
async plugins(params, options) {
|
|
400
478
|
const acceptedPath = [];
|
|
@@ -412,7 +490,10 @@ class Cat {
|
|
|
412
490
|
}
|
|
413
491
|
const method = 'GET';
|
|
414
492
|
const path = '/_cat/plugins';
|
|
415
|
-
|
|
493
|
+
const meta = {
|
|
494
|
+
name: 'cat.plugins'
|
|
495
|
+
};
|
|
496
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
416
497
|
}
|
|
417
498
|
async recovery(params, options) {
|
|
418
499
|
const acceptedPath = ['index'];
|
|
@@ -438,7 +519,13 @@ class Cat {
|
|
|
438
519
|
method = 'GET';
|
|
439
520
|
path = '/_cat/recovery';
|
|
440
521
|
}
|
|
441
|
-
|
|
522
|
+
const meta = {
|
|
523
|
+
name: 'cat.recovery',
|
|
524
|
+
pathParts: {
|
|
525
|
+
index: params.index
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
442
529
|
}
|
|
443
530
|
async repositories(params, options) {
|
|
444
531
|
const acceptedPath = [];
|
|
@@ -456,7 +543,10 @@ class Cat {
|
|
|
456
543
|
}
|
|
457
544
|
const method = 'GET';
|
|
458
545
|
const path = '/_cat/repositories';
|
|
459
|
-
|
|
546
|
+
const meta = {
|
|
547
|
+
name: 'cat.repositories'
|
|
548
|
+
};
|
|
549
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
460
550
|
}
|
|
461
551
|
async segments(params, options) {
|
|
462
552
|
const acceptedPath = ['index'];
|
|
@@ -482,7 +572,13 @@ class Cat {
|
|
|
482
572
|
method = 'GET';
|
|
483
573
|
path = '/_cat/segments';
|
|
484
574
|
}
|
|
485
|
-
|
|
575
|
+
const meta = {
|
|
576
|
+
name: 'cat.segments',
|
|
577
|
+
pathParts: {
|
|
578
|
+
index: params.index
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
486
582
|
}
|
|
487
583
|
async shards(params, options) {
|
|
488
584
|
const acceptedPath = ['index'];
|
|
@@ -508,7 +604,13 @@ class Cat {
|
|
|
508
604
|
method = 'GET';
|
|
509
605
|
path = '/_cat/shards';
|
|
510
606
|
}
|
|
511
|
-
|
|
607
|
+
const meta = {
|
|
608
|
+
name: 'cat.shards',
|
|
609
|
+
pathParts: {
|
|
610
|
+
index: params.index
|
|
611
|
+
}
|
|
612
|
+
};
|
|
613
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
512
614
|
}
|
|
513
615
|
async snapshots(params, options) {
|
|
514
616
|
const acceptedPath = ['repository'];
|
|
@@ -534,7 +636,13 @@ class Cat {
|
|
|
534
636
|
method = 'GET';
|
|
535
637
|
path = '/_cat/snapshots';
|
|
536
638
|
}
|
|
537
|
-
|
|
639
|
+
const meta = {
|
|
640
|
+
name: 'cat.snapshots',
|
|
641
|
+
pathParts: {
|
|
642
|
+
repository: params.repository
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
538
646
|
}
|
|
539
647
|
async tasks(params, options) {
|
|
540
648
|
const acceptedPath = [];
|
|
@@ -552,7 +660,10 @@ class Cat {
|
|
|
552
660
|
}
|
|
553
661
|
const method = 'GET';
|
|
554
662
|
const path = '/_cat/tasks';
|
|
555
|
-
|
|
663
|
+
const meta = {
|
|
664
|
+
name: 'cat.tasks'
|
|
665
|
+
};
|
|
666
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
556
667
|
}
|
|
557
668
|
async templates(params, options) {
|
|
558
669
|
const acceptedPath = ['name'];
|
|
@@ -578,7 +689,13 @@ class Cat {
|
|
|
578
689
|
method = 'GET';
|
|
579
690
|
path = '/_cat/templates';
|
|
580
691
|
}
|
|
581
|
-
|
|
692
|
+
const meta = {
|
|
693
|
+
name: 'cat.templates',
|
|
694
|
+
pathParts: {
|
|
695
|
+
name: params.name
|
|
696
|
+
}
|
|
697
|
+
};
|
|
698
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
582
699
|
}
|
|
583
700
|
async threadPool(params, options) {
|
|
584
701
|
const acceptedPath = ['thread_pool_patterns'];
|
|
@@ -604,7 +721,13 @@ class Cat {
|
|
|
604
721
|
method = 'GET';
|
|
605
722
|
path = '/_cat/thread_pool';
|
|
606
723
|
}
|
|
607
|
-
|
|
724
|
+
const meta = {
|
|
725
|
+
name: 'cat.thread_pool',
|
|
726
|
+
pathParts: {
|
|
727
|
+
thread_pool_patterns: params.thread_pool_patterns
|
|
728
|
+
}
|
|
729
|
+
};
|
|
730
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
608
731
|
}
|
|
609
732
|
async transforms(params, options) {
|
|
610
733
|
const acceptedPath = ['transform_id'];
|
|
@@ -630,7 +753,13 @@ class Cat {
|
|
|
630
753
|
method = 'GET';
|
|
631
754
|
path = '/_cat/transforms';
|
|
632
755
|
}
|
|
633
|
-
|
|
756
|
+
const meta = {
|
|
757
|
+
name: 'cat.transforms',
|
|
758
|
+
pathParts: {
|
|
759
|
+
transform_id: params.transform_id
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
634
763
|
}
|
|
635
764
|
}
|
|
636
765
|
exports.default = Cat;
|