elasticsearch 8.17.1__py3-none-any.whl → 8.18.0__py3-none-any.whl
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.
- elasticsearch/__init__.py +2 -2
- elasticsearch/_async/client/__init__.py +2146 -859
- elasticsearch/_async/client/_base.py +0 -1
- elasticsearch/_async/client/async_search.py +44 -29
- elasticsearch/_async/client/autoscaling.py +32 -26
- elasticsearch/_async/client/cat.py +244 -169
- elasticsearch/_async/client/ccr.py +268 -128
- elasticsearch/_async/client/cluster.py +191 -164
- elasticsearch/_async/client/connector.py +212 -116
- elasticsearch/_async/client/dangling_indices.py +22 -16
- elasticsearch/_async/client/enrich.py +51 -11
- elasticsearch/_async/client/eql.py +54 -13
- elasticsearch/_async/client/esql.py +352 -4
- elasticsearch/_async/client/features.py +37 -27
- elasticsearch/_async/client/fleet.py +22 -10
- elasticsearch/_async/client/graph.py +10 -9
- elasticsearch/_async/client/ilm.py +108 -77
- elasticsearch/_async/client/indices.py +1112 -677
- elasticsearch/_async/client/inference.py +1875 -133
- elasticsearch/_async/client/ingest.py +83 -50
- elasticsearch/_async/client/license.py +90 -38
- elasticsearch/_async/client/logstash.py +20 -9
- elasticsearch/_async/client/migration.py +26 -17
- elasticsearch/_async/client/ml.py +642 -365
- elasticsearch/_async/client/monitoring.py +6 -3
- elasticsearch/_async/client/nodes.py +51 -53
- elasticsearch/_async/client/query_rules.py +59 -33
- elasticsearch/_async/client/rollup.py +124 -86
- elasticsearch/_async/client/search_application.py +60 -32
- elasticsearch/_async/client/searchable_snapshots.py +25 -12
- elasticsearch/_async/client/security.py +896 -558
- elasticsearch/_async/client/shutdown.py +34 -36
- elasticsearch/_async/client/simulate.py +22 -28
- elasticsearch/_async/client/slm.py +65 -40
- elasticsearch/_async/client/snapshot.py +190 -213
- elasticsearch/_async/client/sql.py +43 -22
- elasticsearch/_async/client/ssl.py +17 -18
- elasticsearch/_async/client/synonyms.py +58 -37
- elasticsearch/_async/client/tasks.py +77 -48
- elasticsearch/_async/client/text_structure.py +65 -56
- elasticsearch/_async/client/transform.py +124 -93
- elasticsearch/_async/client/watcher.py +116 -72
- elasticsearch/_async/client/xpack.py +18 -9
- elasticsearch/_async/helpers.py +1 -2
- elasticsearch/_sync/client/__init__.py +2146 -859
- elasticsearch/_sync/client/_base.py +0 -1
- elasticsearch/_sync/client/async_search.py +44 -29
- elasticsearch/_sync/client/autoscaling.py +32 -26
- elasticsearch/_sync/client/cat.py +244 -169
- elasticsearch/_sync/client/ccr.py +268 -128
- elasticsearch/_sync/client/cluster.py +191 -164
- elasticsearch/_sync/client/connector.py +212 -116
- elasticsearch/_sync/client/dangling_indices.py +22 -16
- elasticsearch/_sync/client/enrich.py +51 -11
- elasticsearch/_sync/client/eql.py +54 -13
- elasticsearch/_sync/client/esql.py +352 -4
- elasticsearch/_sync/client/features.py +37 -27
- elasticsearch/_sync/client/fleet.py +22 -10
- elasticsearch/_sync/client/graph.py +10 -9
- elasticsearch/_sync/client/ilm.py +108 -77
- elasticsearch/_sync/client/indices.py +1112 -677
- elasticsearch/_sync/client/inference.py +1875 -133
- elasticsearch/_sync/client/ingest.py +83 -50
- elasticsearch/_sync/client/license.py +90 -38
- elasticsearch/_sync/client/logstash.py +20 -9
- elasticsearch/_sync/client/migration.py +26 -17
- elasticsearch/_sync/client/ml.py +642 -365
- elasticsearch/_sync/client/monitoring.py +6 -3
- elasticsearch/_sync/client/nodes.py +51 -53
- elasticsearch/_sync/client/query_rules.py +59 -33
- elasticsearch/_sync/client/rollup.py +124 -86
- elasticsearch/_sync/client/search_application.py +60 -32
- elasticsearch/_sync/client/searchable_snapshots.py +25 -12
- elasticsearch/_sync/client/security.py +896 -558
- elasticsearch/_sync/client/shutdown.py +34 -36
- elasticsearch/_sync/client/simulate.py +22 -28
- elasticsearch/_sync/client/slm.py +65 -40
- elasticsearch/_sync/client/snapshot.py +190 -213
- elasticsearch/_sync/client/sql.py +43 -22
- elasticsearch/_sync/client/ssl.py +17 -18
- elasticsearch/_sync/client/synonyms.py +58 -37
- elasticsearch/_sync/client/tasks.py +77 -48
- elasticsearch/_sync/client/text_structure.py +65 -56
- elasticsearch/_sync/client/transform.py +124 -93
- elasticsearch/_sync/client/utils.py +1 -4
- elasticsearch/_sync/client/watcher.py +116 -72
- elasticsearch/_sync/client/xpack.py +18 -9
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +2 -0
- elasticsearch/dsl/__init__.py +203 -0
- elasticsearch/dsl/_async/__init__.py +16 -0
- elasticsearch/dsl/_async/document.py +522 -0
- elasticsearch/dsl/_async/faceted_search.py +50 -0
- elasticsearch/dsl/_async/index.py +639 -0
- elasticsearch/dsl/_async/mapping.py +49 -0
- elasticsearch/dsl/_async/search.py +233 -0
- elasticsearch/dsl/_async/update_by_query.py +47 -0
- elasticsearch/dsl/_sync/__init__.py +16 -0
- elasticsearch/dsl/_sync/document.py +514 -0
- elasticsearch/dsl/_sync/faceted_search.py +50 -0
- elasticsearch/dsl/_sync/index.py +597 -0
- elasticsearch/dsl/_sync/mapping.py +49 -0
- elasticsearch/dsl/_sync/search.py +226 -0
- elasticsearch/dsl/_sync/update_by_query.py +45 -0
- elasticsearch/dsl/aggs.py +3730 -0
- elasticsearch/dsl/analysis.py +341 -0
- elasticsearch/dsl/async_connections.py +37 -0
- elasticsearch/dsl/connections.py +142 -0
- elasticsearch/dsl/document.py +20 -0
- elasticsearch/dsl/document_base.py +444 -0
- elasticsearch/dsl/exceptions.py +32 -0
- elasticsearch/dsl/faceted_search.py +28 -0
- elasticsearch/dsl/faceted_search_base.py +489 -0
- elasticsearch/dsl/field.py +4254 -0
- elasticsearch/dsl/function.py +180 -0
- elasticsearch/dsl/index.py +23 -0
- elasticsearch/dsl/index_base.py +178 -0
- elasticsearch/dsl/mapping.py +19 -0
- elasticsearch/dsl/mapping_base.py +219 -0
- elasticsearch/dsl/query.py +2816 -0
- elasticsearch/dsl/response/__init__.py +388 -0
- elasticsearch/dsl/response/aggs.py +100 -0
- elasticsearch/dsl/response/hit.py +53 -0
- elasticsearch/dsl/search.py +20 -0
- elasticsearch/dsl/search_base.py +1040 -0
- elasticsearch/dsl/serializer.py +34 -0
- elasticsearch/dsl/types.py +6471 -0
- elasticsearch/dsl/update_by_query.py +19 -0
- elasticsearch/dsl/update_by_query_base.py +149 -0
- elasticsearch/dsl/utils.py +687 -0
- elasticsearch/dsl/wrappers.py +119 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/METADATA +12 -2
- elasticsearch-8.18.0.dist-info/RECORD +161 -0
- elasticsearch-8.17.1.dist-info/RECORD +0 -119
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.18.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -57,18 +57,22 @@ class CatClient(NamespacedClient):
|
|
|
57
57
|
v: t.Optional[bool] = None,
|
|
58
58
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
59
59
|
"""
|
|
60
|
-
|
|
61
|
-
information. The API does not return data stream aliases. CAT APIs are only intended
|
|
62
|
-
for human consumption using the command line or the Kibana console. They are
|
|
63
|
-
not intended for use by applications. For application consumption, use the aliases
|
|
64
|
-
API.
|
|
60
|
+
.. raw:: html
|
|
65
61
|
|
|
66
|
-
|
|
62
|
+
<p>Get aliases.</p>
|
|
63
|
+
<p>Get the cluster's index aliases, including filter and routing information.
|
|
64
|
+
This API does not return data stream aliases.</p>
|
|
65
|
+
<p>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.</p>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-alias.html>`_
|
|
67
69
|
|
|
68
70
|
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
|
|
69
71
|
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
|
|
70
|
-
:param expand_wildcards:
|
|
71
|
-
|
|
72
|
+
:param expand_wildcards: The type of index that wildcard patterns can match.
|
|
73
|
+
If the request can target data streams, this argument determines whether
|
|
74
|
+
wildcard expressions match hidden data streams. It supports comma-separated
|
|
75
|
+
values, such as `open,hidden`.
|
|
72
76
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
73
77
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
74
78
|
:param h: List of columns to appear in the response. Supports simple wildcards.
|
|
@@ -78,7 +82,10 @@ class CatClient(NamespacedClient):
|
|
|
78
82
|
the local cluster state. If `false` the list of selected nodes are computed
|
|
79
83
|
from the cluster state of the master node. In both cases the coordinating
|
|
80
84
|
node will send requests for further information to each selected node.
|
|
81
|
-
:param master_timeout:
|
|
85
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
86
|
+
If the master node is not available before the timeout expires, the request
|
|
87
|
+
fails and returns an error. To indicated that the request should never timeout,
|
|
88
|
+
you can set it to `-1`.
|
|
82
89
|
:param s: List of columns that determine how the table should be sorted. Sorting
|
|
83
90
|
defaults to ascending and can be changed by setting `:asc` or `:desc` as
|
|
84
91
|
a suffix to the column name.
|
|
@@ -147,13 +154,16 @@ class CatClient(NamespacedClient):
|
|
|
147
154
|
v: t.Optional[bool] = None,
|
|
148
155
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
149
156
|
"""
|
|
150
|
-
|
|
151
|
-
disk space. IMPORTANT: cat APIs are only intended for human consumption using
|
|
152
|
-
the command line or Kibana console. They are not intended for use by applications.
|
|
157
|
+
.. raw:: html
|
|
153
158
|
|
|
154
|
-
|
|
159
|
+
<p>Get shard allocation information.</p>
|
|
160
|
+
<p>Get a snapshot of the number of shards allocated to each data node and their disk space.</p>
|
|
161
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
|
|
155
162
|
|
|
156
|
-
|
|
163
|
+
|
|
164
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-allocation.html>`_
|
|
165
|
+
|
|
166
|
+
:param node_id: A comma-separated list of node identifiers or names used to limit
|
|
157
167
|
the returned information.
|
|
158
168
|
:param bytes: The unit used to display byte values.
|
|
159
169
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
@@ -231,17 +241,19 @@ class CatClient(NamespacedClient):
|
|
|
231
241
|
v: t.Optional[bool] = None,
|
|
232
242
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
233
243
|
"""
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
244
|
+
.. raw:: html
|
|
245
|
+
|
|
246
|
+
<p>Get component templates.</p>
|
|
247
|
+
<p>Get information about component templates in a cluster.
|
|
248
|
+
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
|
|
249
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
|
|
250
|
+
They are not intended for use by applications. For application consumption, use the get component template API.</p>
|
|
251
|
+
|
|
240
252
|
|
|
241
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
253
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-component-templates.html>`_
|
|
242
254
|
|
|
243
|
-
:param name: The name of the component template.
|
|
244
|
-
If omitted, all component templates are returned.
|
|
255
|
+
:param name: The name of the component template. It accepts wildcard expressions.
|
|
256
|
+
If it is omitted, all component templates are returned.
|
|
245
257
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
246
258
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
247
259
|
:param h: List of columns to appear in the response. Supports simple wildcards.
|
|
@@ -251,7 +263,7 @@ class CatClient(NamespacedClient):
|
|
|
251
263
|
the local cluster state. If `false` the list of selected nodes are computed
|
|
252
264
|
from the cluster state of the master node. In both cases the coordinating
|
|
253
265
|
node will send requests for further information to each selected node.
|
|
254
|
-
:param master_timeout:
|
|
266
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
255
267
|
:param s: List of columns that determine how the table should be sorted. Sorting
|
|
256
268
|
defaults to ascending and can be changed by setting `:asc` or `:desc` as
|
|
257
269
|
a suffix to the column name.
|
|
@@ -313,17 +325,19 @@ class CatClient(NamespacedClient):
|
|
|
313
325
|
v: t.Optional[bool] = None,
|
|
314
326
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
315
327
|
"""
|
|
316
|
-
|
|
317
|
-
an index, or an entire cluster. The document count only includes live documents,
|
|
318
|
-
not deleted documents which have not yet been removed by the merge process. CAT
|
|
319
|
-
APIs are only intended for human consumption using the command line or Kibana
|
|
320
|
-
console. They are not intended for use by applications. For application consumption,
|
|
321
|
-
use the count API.
|
|
328
|
+
.. raw:: html
|
|
322
329
|
|
|
323
|
-
|
|
330
|
+
<p>Get a document count.</p>
|
|
331
|
+
<p>Get quick access to a document count for a data stream, an index, or an entire cluster.
|
|
332
|
+
The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.</p>
|
|
333
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
|
|
334
|
+
They are not intended for use by applications. For application consumption, use the count API.</p>
|
|
324
335
|
|
|
325
|
-
|
|
326
|
-
|
|
336
|
+
|
|
337
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-count.html>`_
|
|
338
|
+
|
|
339
|
+
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
340
|
+
to limit the request. It supports wildcards (`*`). To target all data streams
|
|
327
341
|
and indices, omit this parameter or use `*` or `_all`.
|
|
328
342
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
329
343
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -390,12 +404,15 @@ class CatClient(NamespacedClient):
|
|
|
390
404
|
v: t.Optional[bool] = None,
|
|
391
405
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
392
406
|
"""
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
407
|
+
.. raw:: html
|
|
408
|
+
|
|
409
|
+
<p>Get field data cache information.</p>
|
|
410
|
+
<p>Get the amount of heap memory currently used by the field data cache on every data node in the cluster.</p>
|
|
411
|
+
<p>IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console.
|
|
412
|
+
They are not intended for use by applications. For application consumption, use the nodes stats API.</p>
|
|
397
413
|
|
|
398
|
-
|
|
414
|
+
|
|
415
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-fielddata.html>`_
|
|
399
416
|
|
|
400
417
|
:param fields: Comma-separated list of fields used to limit returned information.
|
|
401
418
|
To retrieve all fields, omit this parameter.
|
|
@@ -467,19 +484,21 @@ class CatClient(NamespacedClient):
|
|
|
467
484
|
v: t.Optional[bool] = None,
|
|
468
485
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
469
486
|
"""
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
487
|
+
.. raw:: html
|
|
488
|
+
|
|
489
|
+
<p>Get the cluster health status.</p>
|
|
490
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the command line or Kibana console.
|
|
491
|
+
They are not intended for use by applications. For application consumption, use the cluster health API.
|
|
492
|
+
This API is often used to check malfunctioning clusters.
|
|
493
|
+
To help you track cluster health alongside log files and alerting systems, the API returns timestamps in two formats:
|
|
494
|
+
<code>HH:MM:SS</code>, which is human-readable but includes no date information;
|
|
495
|
+
<code>Unix epoch time</code>, which is machine-sortable and includes date information.
|
|
496
|
+
The latter format is useful for cluster recoveries that take multiple days.
|
|
497
|
+
You can use the cat health API to verify cluster health across multiple nodes.
|
|
498
|
+
You also can use the API to track the recovery of a large cluster over a longer period of time.</p>
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-health.html>`_
|
|
483
502
|
|
|
484
503
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
485
504
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -531,9 +550,13 @@ class CatClient(NamespacedClient):
|
|
|
531
550
|
@_rewrite_parameters()
|
|
532
551
|
async def help(self) -> TextApiResponse:
|
|
533
552
|
"""
|
|
534
|
-
|
|
553
|
+
.. raw:: html
|
|
535
554
|
|
|
536
|
-
|
|
555
|
+
<p>Get CAT help.</p>
|
|
556
|
+
<p>Get help for the CAT APIs.</p>
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat.html>`_
|
|
537
560
|
"""
|
|
538
561
|
__path_parts: t.Dict[str, str] = {}
|
|
539
562
|
__path = "/_cat"
|
|
@@ -582,18 +605,25 @@ class CatClient(NamespacedClient):
|
|
|
582
605
|
v: t.Optional[bool] = None,
|
|
583
606
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
584
607
|
"""
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
608
|
+
.. raw:: html
|
|
609
|
+
|
|
610
|
+
<p>Get index information.</p>
|
|
611
|
+
<p>Get high-level information about indices in a cluster, including backing indices for data streams.</p>
|
|
612
|
+
<p>Use this request to get the following information for each index in a cluster:</p>
|
|
613
|
+
<ul>
|
|
614
|
+
<li>shard count</li>
|
|
615
|
+
<li>document count</li>
|
|
616
|
+
<li>deleted document count</li>
|
|
617
|
+
<li>primary store size</li>
|
|
618
|
+
<li>total store size of all shards, including shard replicas</li>
|
|
619
|
+
</ul>
|
|
620
|
+
<p>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.
|
|
621
|
+
To get an accurate count of Elasticsearch documents, use the cat count or count APIs.</p>
|
|
622
|
+
<p>CAT APIs are only intended for human consumption using the command line or Kibana console.
|
|
623
|
+
They are not intended for use by applications. For application consumption, use an index endpoint.</p>
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-indices.html>`_
|
|
597
627
|
|
|
598
628
|
:param index: Comma-separated list of data streams, indices, and aliases used
|
|
599
629
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -684,12 +714,14 @@ class CatClient(NamespacedClient):
|
|
|
684
714
|
v: t.Optional[bool] = None,
|
|
685
715
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
686
716
|
"""
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
717
|
+
.. raw:: html
|
|
718
|
+
|
|
719
|
+
<p>Get master node information.</p>
|
|
720
|
+
<p>Get information about the master node, including the ID, bound IP address, and name.</p>
|
|
721
|
+
<p>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.</p>
|
|
691
722
|
|
|
692
|
-
|
|
723
|
+
|
|
724
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-master.html>`_
|
|
693
725
|
|
|
694
726
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
695
727
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -858,13 +890,16 @@ class CatClient(NamespacedClient):
|
|
|
858
890
|
v: t.Optional[bool] = None,
|
|
859
891
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
860
892
|
"""
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
893
|
+
.. raw:: html
|
|
894
|
+
|
|
895
|
+
<p>Get data frame analytics jobs.</p>
|
|
896
|
+
<p>Get configuration and usage information about data frame analytics jobs.</p>
|
|
897
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
|
|
898
|
+
console or command line. They are not intended for use by applications. For
|
|
899
|
+
application consumption, use the get data frame analytics jobs statistics API.</p>
|
|
866
900
|
|
|
867
|
-
|
|
901
|
+
|
|
902
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-dfanalytics.html>`_
|
|
868
903
|
|
|
869
904
|
:param id: The ID of the data frame analytics to fetch
|
|
870
905
|
:param allow_no_match: Whether to ignore if a wildcard expression matches no
|
|
@@ -1020,14 +1055,19 @@ class CatClient(NamespacedClient):
|
|
|
1020
1055
|
v: t.Optional[bool] = None,
|
|
1021
1056
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1022
1057
|
"""
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1058
|
+
.. raw:: html
|
|
1059
|
+
|
|
1060
|
+
<p>Get datafeeds.</p>
|
|
1061
|
+
<p>Get configuration and usage information about datafeeds.
|
|
1062
|
+
This API returns a maximum of 10,000 datafeeds.
|
|
1063
|
+
If the Elasticsearch security features are enabled, you must have <code>monitor_ml</code>, <code>monitor</code>, <code>manage_ml</code>, or <code>manage</code>
|
|
1064
|
+
cluster privileges to use this API.</p>
|
|
1065
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
|
|
1066
|
+
console or command line. They are not intended for use by applications. For
|
|
1067
|
+
application consumption, use the get datafeed statistics API.</p>
|
|
1029
1068
|
|
|
1030
|
-
|
|
1069
|
+
|
|
1070
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-datafeeds.html>`_
|
|
1031
1071
|
|
|
1032
1072
|
:param datafeed_id: A numerical character string that uniquely identifies the
|
|
1033
1073
|
datafeed.
|
|
@@ -1381,15 +1421,19 @@ class CatClient(NamespacedClient):
|
|
|
1381
1421
|
v: t.Optional[bool] = None,
|
|
1382
1422
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1383
1423
|
"""
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1424
|
+
.. raw:: html
|
|
1425
|
+
|
|
1426
|
+
<p>Get anomaly detection jobs.</p>
|
|
1427
|
+
<p>Get configuration and usage information for anomaly detection jobs.
|
|
1428
|
+
This API returns a maximum of 10,000 jobs.
|
|
1429
|
+
If the Elasticsearch security features are enabled, you must have <code>monitor_ml</code>,
|
|
1430
|
+
<code>monitor</code>, <code>manage_ml</code>, or <code>manage</code> cluster privileges to use this API.</p>
|
|
1431
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
|
|
1432
|
+
console or command line. They are not intended for use by applications. For
|
|
1433
|
+
application consumption, use the get anomaly detection job statistics API.</p>
|
|
1434
|
+
|
|
1391
1435
|
|
|
1392
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1436
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-anomaly-detectors.html>`_
|
|
1393
1437
|
|
|
1394
1438
|
:param job_id: Identifier for the anomaly detection job.
|
|
1395
1439
|
:param allow_no_match: Specifies what to do when the request: * Contains wildcard
|
|
@@ -1565,12 +1609,16 @@ class CatClient(NamespacedClient):
|
|
|
1565
1609
|
v: t.Optional[bool] = None,
|
|
1566
1610
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1567
1611
|
"""
|
|
1568
|
-
|
|
1569
|
-
trained models. CAT APIs are only intended for human consumption using the Kibana
|
|
1570
|
-
console or command line. They are not intended for use by applications. For application
|
|
1571
|
-
consumption, use the get trained models statistics API.
|
|
1612
|
+
.. raw:: html
|
|
1572
1613
|
|
|
1573
|
-
|
|
1614
|
+
<p>Get trained models.</p>
|
|
1615
|
+
<p>Get configuration and usage information about inference trained models.</p>
|
|
1616
|
+
<p>IMPORTANT: CAT APIs are only intended for human consumption using the Kibana
|
|
1617
|
+
console or command line. They are not intended for use by applications. For
|
|
1618
|
+
application consumption, use the get trained models statistics API.</p>
|
|
1619
|
+
|
|
1620
|
+
|
|
1621
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-trained-model.html>`_
|
|
1574
1622
|
|
|
1575
1623
|
:param model_id: A unique identifier for the trained model.
|
|
1576
1624
|
:param allow_no_match: Specifies what to do when the request: contains wildcard
|
|
@@ -1656,12 +1704,14 @@ class CatClient(NamespacedClient):
|
|
|
1656
1704
|
v: t.Optional[bool] = None,
|
|
1657
1705
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1658
1706
|
"""
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1707
|
+
.. raw:: html
|
|
1708
|
+
|
|
1709
|
+
<p>Get node attribute information.</p>
|
|
1710
|
+
<p>Get information about custom node attributes.
|
|
1711
|
+
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.</p>
|
|
1712
|
+
|
|
1663
1713
|
|
|
1664
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1714
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-nodeattrs.html>`_
|
|
1665
1715
|
|
|
1666
1716
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1667
1717
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1737,12 +1787,14 @@ class CatClient(NamespacedClient):
|
|
|
1737
1787
|
v: t.Optional[bool] = None,
|
|
1738
1788
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1739
1789
|
"""
|
|
1740
|
-
|
|
1741
|
-
intended for human consumption using the command line or Kibana console. They
|
|
1742
|
-
are not intended for use by applications. For application consumption, use the
|
|
1743
|
-
nodes info API.
|
|
1790
|
+
.. raw:: html
|
|
1744
1791
|
|
|
1745
|
-
|
|
1792
|
+
<p>Get node information.</p>
|
|
1793
|
+
<p>Get information about the nodes in a cluster.
|
|
1794
|
+
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.</p>
|
|
1795
|
+
|
|
1796
|
+
|
|
1797
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-nodes.html>`_
|
|
1746
1798
|
|
|
1747
1799
|
:param bytes: The unit used to display byte values.
|
|
1748
1800
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
@@ -1822,12 +1874,14 @@ class CatClient(NamespacedClient):
|
|
|
1822
1874
|
v: t.Optional[bool] = None,
|
|
1823
1875
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1824
1876
|
"""
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1877
|
+
.. raw:: html
|
|
1878
|
+
|
|
1879
|
+
<p>Get pending task information.</p>
|
|
1880
|
+
<p>Get information about cluster-level changes that have not yet taken effect.
|
|
1881
|
+
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.</p>
|
|
1829
1882
|
|
|
1830
|
-
|
|
1883
|
+
|
|
1884
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-pending-tasks.html>`_
|
|
1831
1885
|
|
|
1832
1886
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1833
1887
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1900,12 +1954,14 @@ class CatClient(NamespacedClient):
|
|
|
1900
1954
|
v: t.Optional[bool] = None,
|
|
1901
1955
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1902
1956
|
"""
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1957
|
+
.. raw:: html
|
|
1958
|
+
|
|
1959
|
+
<p>Get plugin information.</p>
|
|
1960
|
+
<p>Get a list of plugins running on each node of a cluster.
|
|
1961
|
+
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.</p>
|
|
1907
1962
|
|
|
1908
|
-
|
|
1963
|
+
|
|
1964
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-plugins.html>`_
|
|
1909
1965
|
|
|
1910
1966
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
1911
1967
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -1984,16 +2040,16 @@ class CatClient(NamespacedClient):
|
|
|
1984
2040
|
v: t.Optional[bool] = None,
|
|
1985
2041
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
1986
2042
|
"""
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
consumption, use the index recovery API.
|
|
2043
|
+
.. raw:: html
|
|
2044
|
+
|
|
2045
|
+
<p>Get shard recovery information.</p>
|
|
2046
|
+
<p>Get information about ongoing and completed shard recoveries.
|
|
2047
|
+
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.
|
|
2048
|
+
For data streams, the API returns information about the stream’s backing indices.
|
|
2049
|
+
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.</p>
|
|
1995
2050
|
|
|
1996
|
-
|
|
2051
|
+
|
|
2052
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-recovery.html>`_
|
|
1997
2053
|
|
|
1998
2054
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
1999
2055
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -2074,12 +2130,14 @@ class CatClient(NamespacedClient):
|
|
|
2074
2130
|
v: t.Optional[bool] = None,
|
|
2075
2131
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2076
2132
|
"""
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2133
|
+
.. raw:: html
|
|
2134
|
+
|
|
2135
|
+
<p>Get snapshot repository information.</p>
|
|
2136
|
+
<p>Get a list of snapshot repositories for a cluster.
|
|
2137
|
+
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.</p>
|
|
2138
|
+
|
|
2081
2139
|
|
|
2082
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2140
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-repositories.html>`_
|
|
2083
2141
|
|
|
2084
2142
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
2085
2143
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
@@ -2152,13 +2210,15 @@ class CatClient(NamespacedClient):
|
|
|
2152
2210
|
v: t.Optional[bool] = None,
|
|
2153
2211
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2154
2212
|
"""
|
|
2155
|
-
|
|
2156
|
-
data streams, the API returns information about the backing indices. IMPORTANT:
|
|
2157
|
-
cat APIs are only intended for human consumption using the command line or Kibana
|
|
2158
|
-
console. They are not intended for use by applications. For application consumption,
|
|
2159
|
-
use the index segments API.
|
|
2213
|
+
.. raw:: html
|
|
2160
2214
|
|
|
2161
|
-
|
|
2215
|
+
<p>Get segment information.</p>
|
|
2216
|
+
<p>Get low-level information about the Lucene segments in index shards.
|
|
2217
|
+
For data streams, the API returns information about the backing indices.
|
|
2218
|
+
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.</p>
|
|
2219
|
+
|
|
2220
|
+
|
|
2221
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-segments.html>`_
|
|
2162
2222
|
|
|
2163
2223
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
2164
2224
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -2244,12 +2304,15 @@ class CatClient(NamespacedClient):
|
|
|
2244
2304
|
v: t.Optional[bool] = None,
|
|
2245
2305
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2246
2306
|
"""
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2307
|
+
.. raw:: html
|
|
2308
|
+
|
|
2309
|
+
<p>Get shard information.</p>
|
|
2310
|
+
<p>Get information about the shards in a cluster.
|
|
2311
|
+
For data streams, the API returns information about the backing indices.
|
|
2312
|
+
IMPORTANT: cat APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications.</p>
|
|
2313
|
+
|
|
2251
2314
|
|
|
2252
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2315
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-shards.html>`_
|
|
2253
2316
|
|
|
2254
2317
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
2255
2318
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
@@ -2330,13 +2393,15 @@ class CatClient(NamespacedClient):
|
|
|
2330
2393
|
v: t.Optional[bool] = None,
|
|
2331
2394
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2332
2395
|
"""
|
|
2333
|
-
|
|
2334
|
-
snapshot is a backup of an index or running Elasticsearch cluster. IMPORTANT:
|
|
2335
|
-
cat APIs are only intended for human consumption using the command line or Kibana
|
|
2336
|
-
console. They are not intended for use by applications. For application consumption,
|
|
2337
|
-
use the get snapshot API.
|
|
2396
|
+
.. raw:: html
|
|
2338
2397
|
|
|
2339
|
-
|
|
2398
|
+
<p>Get snapshot information.</p>
|
|
2399
|
+
<p>Get information about the snapshots stored in one or more repositories.
|
|
2400
|
+
A snapshot is a backup of an index or running Elasticsearch cluster.
|
|
2401
|
+
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.</p>
|
|
2402
|
+
|
|
2403
|
+
|
|
2404
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-snapshots.html>`_
|
|
2340
2405
|
|
|
2341
2406
|
:param repository: A comma-separated list of snapshot repositories used to limit
|
|
2342
2407
|
the request. Accepts wildcard expressions. `_all` returns all repositories.
|
|
@@ -2422,12 +2487,14 @@ class CatClient(NamespacedClient):
|
|
|
2422
2487
|
wait_for_completion: t.Optional[bool] = None,
|
|
2423
2488
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2424
2489
|
"""
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2490
|
+
.. raw:: html
|
|
2491
|
+
|
|
2492
|
+
<p>Get task information.</p>
|
|
2493
|
+
<p>Get information about tasks currently running in the cluster.
|
|
2494
|
+
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.</p>
|
|
2429
2495
|
|
|
2430
|
-
|
|
2496
|
+
|
|
2497
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-tasks.html>`_
|
|
2431
2498
|
|
|
2432
2499
|
:param actions: The task action names, which are used to limit the response.
|
|
2433
2500
|
:param detailed: If `true`, the response includes detailed information about
|
|
@@ -2513,13 +2580,15 @@ class CatClient(NamespacedClient):
|
|
|
2513
2580
|
v: t.Optional[bool] = None,
|
|
2514
2581
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2515
2582
|
"""
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2583
|
+
.. raw:: html
|
|
2584
|
+
|
|
2585
|
+
<p>Get index template information.</p>
|
|
2586
|
+
<p>Get information about the index templates in a cluster.
|
|
2587
|
+
You can use index templates to apply index settings and field mappings to new indices at creation.
|
|
2588
|
+
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.</p>
|
|
2521
2589
|
|
|
2522
|
-
|
|
2590
|
+
|
|
2591
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-templates.html>`_
|
|
2523
2592
|
|
|
2524
2593
|
:param name: The name of the template to return. Accepts wildcard expressions.
|
|
2525
2594
|
If omitted, all templates are returned.
|
|
@@ -2599,13 +2668,15 @@ class CatClient(NamespacedClient):
|
|
|
2599
2668
|
v: t.Optional[bool] = None,
|
|
2600
2669
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2601
2670
|
"""
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2671
|
+
.. raw:: html
|
|
2672
|
+
|
|
2673
|
+
<p>Get thread pool statistics.</p>
|
|
2674
|
+
<p>Get thread pool statistics for each node in a cluster.
|
|
2675
|
+
Returned information includes all built-in thread pools and custom thread pools.
|
|
2676
|
+
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.</p>
|
|
2607
2677
|
|
|
2608
|
-
|
|
2678
|
+
|
|
2679
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-thread-pool.html>`_
|
|
2609
2680
|
|
|
2610
2681
|
:param thread_pool_patterns: A comma-separated list of thread pool names used
|
|
2611
2682
|
to limit the request. Accepts wildcard expressions.
|
|
@@ -2853,12 +2924,16 @@ class CatClient(NamespacedClient):
|
|
|
2853
2924
|
v: t.Optional[bool] = None,
|
|
2854
2925
|
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
|
|
2855
2926
|
"""
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2927
|
+
.. raw:: html
|
|
2928
|
+
|
|
2929
|
+
<p>Get transform information.</p>
|
|
2930
|
+
<p>Get configuration and usage information about transforms.</p>
|
|
2931
|
+
<p>CAT APIs are only intended for human consumption using the Kibana
|
|
2932
|
+
console or command line. They are not intended for use by applications. For
|
|
2933
|
+
application consumption, use the get transform statistics API.</p>
|
|
2934
|
+
|
|
2860
2935
|
|
|
2861
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
2936
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.18/cat-transforms.html>`_
|
|
2862
2937
|
|
|
2863
2938
|
:param transform_id: A transform identifier or a wildcard expression. If you
|
|
2864
2939
|
do not specify one of these options, the API returns information for all
|