elasticsearch 8.17.0__py3-none-any.whl → 8.17.2__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 +2034 -740
- elasticsearch/_async/client/async_search.py +33 -22
- elasticsearch/_async/client/autoscaling.py +27 -21
- elasticsearch/_async/client/cat.py +280 -336
- elasticsearch/_async/client/ccr.py +96 -70
- elasticsearch/_async/client/cluster.py +152 -144
- elasticsearch/_async/client/connector.py +488 -55
- elasticsearch/_async/client/dangling_indices.py +22 -16
- elasticsearch/_async/client/enrich.py +25 -6
- elasticsearch/_async/client/eql.py +22 -9
- elasticsearch/_async/client/esql.py +295 -3
- elasticsearch/_async/client/features.py +25 -25
- elasticsearch/_async/client/fleet.py +15 -9
- elasticsearch/_async/client/graph.py +9 -8
- elasticsearch/_async/client/ilm.py +91 -61
- elasticsearch/_async/client/indices.py +746 -324
- elasticsearch/_async/client/inference.py +101 -4
- elasticsearch/_async/client/ingest.py +231 -19
- elasticsearch/_async/client/license.py +48 -31
- elasticsearch/_async/client/logstash.py +20 -6
- elasticsearch/_async/client/migration.py +25 -7
- elasticsearch/_async/client/ml.py +532 -278
- elasticsearch/_async/client/monitoring.py +5 -1
- elasticsearch/_async/client/nodes.py +46 -30
- elasticsearch/_async/client/query_rules.py +65 -18
- elasticsearch/_async/client/rollup.py +126 -13
- elasticsearch/_async/client/search_application.py +170 -13
- elasticsearch/_async/client/searchable_snapshots.py +45 -23
- elasticsearch/_async/client/security.py +1299 -340
- elasticsearch/_async/client/shutdown.py +43 -15
- elasticsearch/_async/client/simulate.py +145 -0
- elasticsearch/_async/client/slm.py +163 -19
- elasticsearch/_async/client/snapshot.py +288 -23
- elasticsearch/_async/client/sql.py +94 -53
- elasticsearch/_async/client/ssl.py +16 -17
- elasticsearch/_async/client/synonyms.py +67 -26
- elasticsearch/_async/client/tasks.py +103 -28
- elasticsearch/_async/client/text_structure.py +475 -46
- elasticsearch/_async/client/transform.py +108 -72
- elasticsearch/_async/client/watcher.py +245 -43
- elasticsearch/_async/client/xpack.py +20 -6
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_sync/client/__init__.py +2034 -740
- elasticsearch/_sync/client/async_search.py +33 -22
- elasticsearch/_sync/client/autoscaling.py +27 -21
- elasticsearch/_sync/client/cat.py +280 -336
- elasticsearch/_sync/client/ccr.py +96 -70
- elasticsearch/_sync/client/cluster.py +152 -144
- elasticsearch/_sync/client/connector.py +488 -55
- elasticsearch/_sync/client/dangling_indices.py +22 -16
- elasticsearch/_sync/client/enrich.py +25 -6
- elasticsearch/_sync/client/eql.py +22 -9
- elasticsearch/_sync/client/esql.py +295 -3
- elasticsearch/_sync/client/features.py +25 -25
- elasticsearch/_sync/client/fleet.py +15 -9
- elasticsearch/_sync/client/graph.py +9 -8
- elasticsearch/_sync/client/ilm.py +91 -61
- elasticsearch/_sync/client/indices.py +746 -324
- elasticsearch/_sync/client/inference.py +101 -4
- elasticsearch/_sync/client/ingest.py +231 -19
- elasticsearch/_sync/client/license.py +48 -31
- elasticsearch/_sync/client/logstash.py +20 -6
- elasticsearch/_sync/client/migration.py +25 -7
- elasticsearch/_sync/client/ml.py +532 -278
- elasticsearch/_sync/client/monitoring.py +5 -1
- elasticsearch/_sync/client/nodes.py +46 -30
- elasticsearch/_sync/client/query_rules.py +65 -18
- elasticsearch/_sync/client/rollup.py +126 -13
- elasticsearch/_sync/client/search_application.py +170 -13
- elasticsearch/_sync/client/searchable_snapshots.py +45 -23
- elasticsearch/_sync/client/security.py +1299 -340
- elasticsearch/_sync/client/shutdown.py +43 -15
- elasticsearch/_sync/client/simulate.py +145 -0
- elasticsearch/_sync/client/slm.py +163 -19
- elasticsearch/_sync/client/snapshot.py +288 -23
- elasticsearch/_sync/client/sql.py +94 -53
- elasticsearch/_sync/client/ssl.py +16 -17
- elasticsearch/_sync/client/synonyms.py +67 -26
- elasticsearch/_sync/client/tasks.py +103 -28
- elasticsearch/_sync/client/text_structure.py +475 -46
- elasticsearch/_sync/client/transform.py +108 -72
- elasticsearch/_sync/client/utils.py +1 -1
- elasticsearch/_sync/client/watcher.py +245 -43
- elasticsearch/_sync/client/xpack.py +20 -6
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +4 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
- elasticsearch-8.17.2.dist-info/RECORD +119 -0
- elasticsearch-8.17.0.dist-info/RECORD +0 -117
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
|
@@ -45,14 +45,15 @@ class GraphClient(NamespacedClient):
|
|
|
45
45
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
46
46
|
) -> ObjectApiResponse[t.Any]:
|
|
47
47
|
"""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
.. raw:: html
|
|
49
|
+
|
|
50
|
+
<p>Explore graph analytics.
|
|
51
|
+
Extract and summarize information about the documents and terms in an Elasticsearch data stream or index.
|
|
52
|
+
The easiest way to understand the behavior of this API is to use the Graph UI to explore connections.
|
|
53
|
+
An initial request to the <code>_explore</code> API contains a seed query that identifies the documents of interest and specifies the fields that define the vertices and connections you want to include in the graph.
|
|
54
|
+
Subsequent requests enable you to spider out from one more vertices of interest.
|
|
55
|
+
You can exclude vertices that have already been returned.</p>
|
|
56
|
+
|
|
56
57
|
|
|
57
58
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/graph-explore-api.html>`_
|
|
58
59
|
|
|
@@ -38,9 +38,11 @@ class IlmClient(NamespacedClient):
|
|
|
38
38
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
39
39
|
) -> ObjectApiResponse[t.Any]:
|
|
40
40
|
"""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
.. raw:: html
|
|
42
|
+
|
|
43
|
+
<p>Delete a lifecycle policy.
|
|
44
|
+
You cannot delete policies that are currently in use. If the policy is being used to manage any indices, the request fails and returns an error.</p>
|
|
45
|
+
|
|
44
46
|
|
|
45
47
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-delete-lifecycle.html>`_
|
|
46
48
|
|
|
@@ -93,11 +95,13 @@ class IlmClient(NamespacedClient):
|
|
|
93
95
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
94
96
|
) -> ObjectApiResponse[t.Any]:
|
|
95
97
|
"""
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
.. raw:: html
|
|
99
|
+
|
|
100
|
+
<p>Explain the lifecycle state.
|
|
101
|
+
Get the current lifecycle status for one or more indices.
|
|
102
|
+
For data streams, the API retrieves the current lifecycle status for the stream's backing indices.</p>
|
|
103
|
+
<p>The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.</p>
|
|
104
|
+
|
|
101
105
|
|
|
102
106
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-explain-lifecycle.html>`_
|
|
103
107
|
|
|
@@ -159,7 +163,10 @@ class IlmClient(NamespacedClient):
|
|
|
159
163
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
160
164
|
) -> ObjectApiResponse[t.Any]:
|
|
161
165
|
"""
|
|
162
|
-
|
|
166
|
+
.. raw:: html
|
|
167
|
+
|
|
168
|
+
<p>Get lifecycle policies.</p>
|
|
169
|
+
|
|
163
170
|
|
|
164
171
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-lifecycle.html>`_
|
|
165
172
|
|
|
@@ -210,7 +217,11 @@ class IlmClient(NamespacedClient):
|
|
|
210
217
|
pretty: t.Optional[bool] = None,
|
|
211
218
|
) -> ObjectApiResponse[t.Any]:
|
|
212
219
|
"""
|
|
213
|
-
|
|
220
|
+
.. raw:: html
|
|
221
|
+
|
|
222
|
+
<p>Get the ILM status.
|
|
223
|
+
Get the current index lifecycle management status.</p>
|
|
224
|
+
|
|
214
225
|
|
|
215
226
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-status.html>`_
|
|
216
227
|
"""
|
|
@@ -251,18 +262,22 @@ class IlmClient(NamespacedClient):
|
|
|
251
262
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
252
263
|
) -> ObjectApiResponse[t.Any]:
|
|
253
264
|
"""
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
265
|
+
.. raw:: html
|
|
266
|
+
|
|
267
|
+
<p>Migrate to data tiers routing.
|
|
268
|
+
Switch the indices, ILM policies, and legacy, composable, and component templates from using custom node attributes and attribute-based allocation filters to using data tiers.
|
|
269
|
+
Optionally, delete one legacy index template.
|
|
270
|
+
Using node roles enables ILM to automatically move the indices between data tiers.</p>
|
|
271
|
+
<p>Migrating away from custom node attributes routing can be manually performed.
|
|
272
|
+
This API provides an automated way of performing three out of the four manual steps listed in the migration guide:</p>
|
|
273
|
+
<ol>
|
|
274
|
+
<li>Stop setting the custom hot attribute on new indices.</li>
|
|
275
|
+
<li>Remove custom allocation settings from existing ILM policies.</li>
|
|
276
|
+
<li>Replace custom allocation settings from existing indices with the corresponding tier preference.</li>
|
|
277
|
+
</ol>
|
|
278
|
+
<p>ILM must be stopped before performing the migration.
|
|
279
|
+
Use the stop ILM and get ILM status APIs to wait until the reported operation mode is <code>STOPPED</code>.</p>
|
|
280
|
+
|
|
266
281
|
|
|
267
282
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-migrate-to-data-tiers.html>`_
|
|
268
283
|
|
|
@@ -322,27 +337,26 @@ class IlmClient(NamespacedClient):
|
|
|
322
337
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
323
338
|
) -> ObjectApiResponse[t.Any]:
|
|
324
339
|
"""
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
that is not part of its policy.
|
|
340
|
+
.. raw:: html
|
|
341
|
+
|
|
342
|
+
<p>Move to a lifecycle step.
|
|
343
|
+
Manually move an index into a specific step in the lifecycle policy and run that step.</p>
|
|
344
|
+
<p>WARNING: This operation can result in the loss of data. Manually moving an index into a specific step runs that step even if it has already been performed. This is a potentially destructive action and this should be considered an expert level API.</p>
|
|
345
|
+
<p>You must specify both the current step and the step to be executed in the body of the request.
|
|
346
|
+
The request will fail if the current step does not match the step currently running for the index
|
|
347
|
+
This is to prevent the index from being moved from an unexpected step into the next step.</p>
|
|
348
|
+
<p>When specifying the target (<code>next_step</code>) to which the index will be moved, either the name or both the action and name fields are optional.
|
|
349
|
+
If only the phase is specified, the index will move to the first step of the first action in the target phase.
|
|
350
|
+
If the phase and action are specified, the index will move to the first step of the specified action in the specified phase.
|
|
351
|
+
Only actions specified in the ILM policy are considered valid.
|
|
352
|
+
An index cannot move to a step that is not part of its policy.</p>
|
|
353
|
+
|
|
340
354
|
|
|
341
355
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-move-to-step.html>`_
|
|
342
356
|
|
|
343
357
|
:param index: The name of the index whose lifecycle step is to change
|
|
344
|
-
:param current_step:
|
|
345
|
-
:param next_step:
|
|
358
|
+
:param current_step: The step that the index is expected to be in.
|
|
359
|
+
:param next_step: The step that you want to run.
|
|
346
360
|
"""
|
|
347
361
|
if index in SKIP_IN_PATH:
|
|
348
362
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
@@ -399,9 +413,12 @@ class IlmClient(NamespacedClient):
|
|
|
399
413
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
400
414
|
) -> ObjectApiResponse[t.Any]:
|
|
401
415
|
"""
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
416
|
+
.. raw:: html
|
|
417
|
+
|
|
418
|
+
<p>Create or update a lifecycle policy.
|
|
419
|
+
If the specified policy exists, it is replaced and the policy version is incremented.</p>
|
|
420
|
+
<p>NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.</p>
|
|
421
|
+
|
|
405
422
|
|
|
406
423
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-put-lifecycle.html>`_
|
|
407
424
|
|
|
@@ -460,8 +477,12 @@ class IlmClient(NamespacedClient):
|
|
|
460
477
|
pretty: t.Optional[bool] = None,
|
|
461
478
|
) -> ObjectApiResponse[t.Any]:
|
|
462
479
|
"""
|
|
463
|
-
|
|
464
|
-
|
|
480
|
+
.. raw:: html
|
|
481
|
+
|
|
482
|
+
<p>Remove policies from an index.
|
|
483
|
+
Remove the assigned lifecycle policies from an index or a data stream's backing indices.
|
|
484
|
+
It also stops managing the indices.</p>
|
|
485
|
+
|
|
465
486
|
|
|
466
487
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-remove-policy.html>`_
|
|
467
488
|
|
|
@@ -501,10 +522,13 @@ class IlmClient(NamespacedClient):
|
|
|
501
522
|
pretty: t.Optional[bool] = None,
|
|
502
523
|
) -> ObjectApiResponse[t.Any]:
|
|
503
524
|
"""
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
525
|
+
.. raw:: html
|
|
526
|
+
|
|
527
|
+
<p>Retry a policy.
|
|
528
|
+
Retry running the lifecycle policy for an index that is in the ERROR step.
|
|
529
|
+
The API sets the policy back to the step where the error occurred and runs the step.
|
|
530
|
+
Use the explain lifecycle state API to determine whether an index is in the ERROR step.</p>
|
|
531
|
+
|
|
508
532
|
|
|
509
533
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-retry-policy.html>`_
|
|
510
534
|
|
|
@@ -546,14 +570,18 @@ class IlmClient(NamespacedClient):
|
|
|
546
570
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
547
571
|
) -> ObjectApiResponse[t.Any]:
|
|
548
572
|
"""
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
573
|
+
.. raw:: html
|
|
574
|
+
|
|
575
|
+
<p>Start the ILM plugin.
|
|
576
|
+
Start the index lifecycle management plugin if it is currently stopped.
|
|
577
|
+
ILM is started automatically when the cluster is formed.
|
|
578
|
+
Restarting ILM is necessary only when it has been stopped using the stop ILM API.</p>
|
|
579
|
+
|
|
552
580
|
|
|
553
581
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-start.html>`_
|
|
554
582
|
|
|
555
|
-
:param master_timeout:
|
|
556
|
-
:param timeout:
|
|
583
|
+
:param master_timeout: Explicit operation timeout for connection to master node
|
|
584
|
+
:param timeout: Explicit operation timeout
|
|
557
585
|
"""
|
|
558
586
|
__path_parts: t.Dict[str, str] = {}
|
|
559
587
|
__path = "/_ilm/start"
|
|
@@ -592,17 +620,19 @@ class IlmClient(NamespacedClient):
|
|
|
592
620
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
593
621
|
) -> ObjectApiResponse[t.Any]:
|
|
594
622
|
"""
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
623
|
+
.. raw:: html
|
|
624
|
+
|
|
625
|
+
<p>Stop the ILM plugin.
|
|
626
|
+
Halt all lifecycle management operations and stop the index lifecycle management plugin.
|
|
627
|
+
This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.</p>
|
|
628
|
+
<p>The API returns as soon as the stop request has been acknowledged, but the plugin might continue to run until in-progress operations complete and the plugin can be safely stopped.
|
|
629
|
+
Use the get ILM status API to check whether ILM is running.</p>
|
|
630
|
+
|
|
601
631
|
|
|
602
632
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-stop.html>`_
|
|
603
633
|
|
|
604
|
-
:param master_timeout:
|
|
605
|
-
:param timeout:
|
|
634
|
+
:param master_timeout: Explicit operation timeout for connection to master node
|
|
635
|
+
:param timeout: Explicit operation timeout
|
|
606
636
|
"""
|
|
607
637
|
__path_parts: t.Dict[str, str] = {}
|
|
608
638
|
__path = "/_ilm/stop"
|