elasticsearch 8.17.1__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 +1971 -779
- elasticsearch/_async/client/async_search.py +33 -22
- elasticsearch/_async/client/autoscaling.py +27 -21
- elasticsearch/_async/client/cat.py +216 -141
- elasticsearch/_async/client/ccr.py +96 -70
- elasticsearch/_async/client/cluster.py +150 -142
- elasticsearch/_async/client/connector.py +182 -86
- elasticsearch/_async/client/dangling_indices.py +19 -13
- 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 +85 -55
- elasticsearch/_async/client/indices.py +692 -549
- elasticsearch/_async/client/inference.py +32 -28
- elasticsearch/_async/client/ingest.py +61 -22
- elasticsearch/_async/client/license.py +48 -31
- elasticsearch/_async/client/logstash.py +17 -6
- elasticsearch/_async/client/migration.py +23 -14
- elasticsearch/_async/client/ml.py +532 -284
- elasticsearch/_async/client/monitoring.py +5 -2
- elasticsearch/_async/client/nodes.py +43 -27
- elasticsearch/_async/client/query_rules.py +51 -25
- elasticsearch/_async/client/rollup.py +111 -73
- elasticsearch/_async/client/search_application.py +49 -21
- elasticsearch/_async/client/searchable_snapshots.py +21 -8
- elasticsearch/_async/client/security.py +810 -472
- elasticsearch/_async/client/shutdown.py +31 -26
- elasticsearch/_async/client/simulate.py +16 -22
- elasticsearch/_async/client/slm.py +55 -30
- elasticsearch/_async/client/snapshot.py +173 -192
- elasticsearch/_async/client/sql.py +37 -16
- elasticsearch/_async/client/ssl.py +16 -17
- elasticsearch/_async/client/synonyms.py +50 -29
- elasticsearch/_async/client/tasks.py +74 -39
- elasticsearch/_async/client/text_structure.py +61 -52
- elasticsearch/_async/client/transform.py +108 -79
- elasticsearch/_async/client/watcher.py +93 -57
- elasticsearch/_async/client/xpack.py +16 -7
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_sync/client/__init__.py +1971 -779
- elasticsearch/_sync/client/async_search.py +33 -22
- elasticsearch/_sync/client/autoscaling.py +27 -21
- elasticsearch/_sync/client/cat.py +216 -141
- elasticsearch/_sync/client/ccr.py +96 -70
- elasticsearch/_sync/client/cluster.py +150 -142
- elasticsearch/_sync/client/connector.py +182 -86
- elasticsearch/_sync/client/dangling_indices.py +19 -13
- 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 +85 -55
- elasticsearch/_sync/client/indices.py +692 -549
- elasticsearch/_sync/client/inference.py +32 -28
- elasticsearch/_sync/client/ingest.py +61 -22
- elasticsearch/_sync/client/license.py +48 -31
- elasticsearch/_sync/client/logstash.py +17 -6
- elasticsearch/_sync/client/migration.py +23 -14
- elasticsearch/_sync/client/ml.py +532 -284
- elasticsearch/_sync/client/monitoring.py +5 -2
- elasticsearch/_sync/client/nodes.py +43 -27
- elasticsearch/_sync/client/query_rules.py +51 -25
- elasticsearch/_sync/client/rollup.py +111 -73
- elasticsearch/_sync/client/search_application.py +49 -21
- elasticsearch/_sync/client/searchable_snapshots.py +21 -8
- elasticsearch/_sync/client/security.py +810 -472
- elasticsearch/_sync/client/shutdown.py +31 -26
- elasticsearch/_sync/client/simulate.py +16 -22
- elasticsearch/_sync/client/slm.py +55 -30
- elasticsearch/_sync/client/snapshot.py +173 -192
- elasticsearch/_sync/client/sql.py +37 -16
- elasticsearch/_sync/client/ssl.py +16 -17
- elasticsearch/_sync/client/synonyms.py +50 -29
- elasticsearch/_sync/client/tasks.py +74 -39
- elasticsearch/_sync/client/text_structure.py +61 -52
- elasticsearch/_sync/client/transform.py +108 -79
- elasticsearch/_sync/client/utils.py +1 -1
- elasticsearch/_sync/client/watcher.py +93 -57
- elasticsearch/_sync/client/xpack.py +16 -7
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +2 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
- elasticsearch-8.17.2.dist-info/RECORD +119 -0
- elasticsearch-8.17.1.dist-info/RECORD +0 -119
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
|
@@ -42,13 +42,16 @@ class ShutdownClient(NamespacedClient):
|
|
|
42
42
|
] = None,
|
|
43
43
|
) -> ObjectApiResponse[t.Any]:
|
|
44
44
|
"""
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
.. raw:: html
|
|
46
|
+
|
|
47
|
+
<p>Cancel node shutdown preparations.
|
|
48
|
+
Remove a node from the shutdown list so it can resume normal operations.
|
|
49
|
+
You must explicitly clear the shutdown request when a node rejoins the cluster or when a node has permanently left the cluster.
|
|
50
|
+
Shutdown requests are never removed automatically by Elasticsearch.</p>
|
|
51
|
+
<p>NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes.
|
|
52
|
+
Direct use is not supported.</p>
|
|
53
|
+
<p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
|
|
54
|
+
|
|
52
55
|
|
|
53
56
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-shutdown.html>`_
|
|
54
57
|
|
|
@@ -103,13 +106,14 @@ class ShutdownClient(NamespacedClient):
|
|
|
103
106
|
] = None,
|
|
104
107
|
) -> ObjectApiResponse[t.Any]:
|
|
105
108
|
"""
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
.. raw:: html
|
|
110
|
+
|
|
111
|
+
<p>Get the shutdown status.</p>
|
|
112
|
+
<p>Get information about nodes that are ready to be shut down, have shut down preparations still in progress, or have stalled.
|
|
113
|
+
The API returns status information for each part of the shut down process.</p>
|
|
114
|
+
<p>NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
115
|
+
<p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
|
|
116
|
+
|
|
113
117
|
|
|
114
118
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-shutdown.html>`_
|
|
115
119
|
|
|
@@ -176,18 +180,19 @@ class ShutdownClient(NamespacedClient):
|
|
|
176
180
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
177
181
|
) -> ObjectApiResponse[t.Any]:
|
|
178
182
|
"""
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
.. raw:: html
|
|
184
|
+
|
|
185
|
+
<p>Prepare a node to be shut down.</p>
|
|
186
|
+
<p>NOTE: This feature is designed for indirect use by Elastic Cloud, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.</p>
|
|
187
|
+
<p>If you specify a node that is offline, it will be prepared for shut down when it rejoins the cluster.</p>
|
|
188
|
+
<p>If the operator privileges feature is enabled, you must be an operator to use this API.</p>
|
|
189
|
+
<p>The API migrates ongoing tasks and index shards to other nodes as needed to prepare a node to be restarted or shut down and removed from the cluster.
|
|
190
|
+
This ensures that Elasticsearch can be stopped safely with minimal disruption to the cluster.</p>
|
|
191
|
+
<p>You must specify the type of shutdown: <code>restart</code>, <code>remove</code>, or <code>replace</code>.
|
|
192
|
+
If a node is already being prepared for shutdown, you can use this API to change the shutdown type.</p>
|
|
193
|
+
<p>IMPORTANT: This API does NOT terminate the Elasticsearch process.
|
|
194
|
+
Monitor the node shutdown status to determine when it is safe to stop Elasticsearch.</p>
|
|
195
|
+
|
|
191
196
|
|
|
192
197
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-shutdown.html>`_
|
|
193
198
|
|
|
@@ -64,28 +64,22 @@ class SimulateClient(NamespacedClient):
|
|
|
64
64
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
65
65
|
) -> ObjectApiResponse[t.Any]:
|
|
66
66
|
"""
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
the various pipelines that get applied when ingesting into an index. By default,
|
|
84
|
-
the pipeline definitions that are currently in the system are used. However,
|
|
85
|
-
you can supply substitute pipeline definitions in the body of the request. These
|
|
86
|
-
will be used in place of the pipeline definitions that are already in the system.
|
|
87
|
-
This can be used to replace existing pipeline definitions or to create new ones.
|
|
88
|
-
The pipeline substitutions are used only within this request.
|
|
67
|
+
.. raw:: html
|
|
68
|
+
|
|
69
|
+
<p>Simulate data ingestion.
|
|
70
|
+
Run ingest pipelines against a set of provided documents, optionally with substitute pipeline definitions, to simulate ingesting data into an index.</p>
|
|
71
|
+
<p>This API is meant to be used for troubleshooting or pipeline development, as it does not actually index any data into Elasticsearch.</p>
|
|
72
|
+
<p>The API runs the default and final pipeline for that index against a set of documents provided in the body of the request.
|
|
73
|
+
If a pipeline contains a reroute processor, it follows that reroute processor to the new index, running that index's pipelines as well the same way that a non-simulated ingest would.
|
|
74
|
+
No data is indexed into Elasticsearch.
|
|
75
|
+
Instead, the transformed document is returned, along with the list of pipelines that have been run and the name of the index where the document would have been indexed if this were not a simulation.
|
|
76
|
+
The transformed document is validated against the mappings that would apply to this index, and any validation error is reported in the result.</p>
|
|
77
|
+
<p>This API differs from the simulate pipeline API in that you specify a single pipeline for that API, and it runs only that one pipeline.
|
|
78
|
+
The simulate pipeline API is more useful for developing a single pipeline, while the simulate ingest API is more useful for troubleshooting the interaction of the various pipelines that get applied when ingesting into an index.</p>
|
|
79
|
+
<p>By default, the pipeline definitions that are currently in the system are used.
|
|
80
|
+
However, you can supply substitute pipeline definitions in the body of the request.
|
|
81
|
+
These will be used in place of the pipeline definitions that are already in the system. This can be used to replace existing pipeline definitions or to create new ones. The pipeline substitutions are used only within this request.</p>
|
|
82
|
+
|
|
89
83
|
|
|
90
84
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/simulate-ingest-api.html>`_
|
|
91
85
|
|
|
@@ -38,9 +38,12 @@ class SlmClient(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 policy.
|
|
44
|
+
Delete a snapshot lifecycle policy definition.
|
|
45
|
+
This operation prevents any future snapshots from being taken but does not cancel in-progress snapshots or remove previously-taken snapshots.</p>
|
|
46
|
+
|
|
44
47
|
|
|
45
48
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-delete-policy.html>`_
|
|
46
49
|
|
|
@@ -91,10 +94,12 @@ class SlmClient(NamespacedClient):
|
|
|
91
94
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
92
95
|
) -> ObjectApiResponse[t.Any]:
|
|
93
96
|
"""
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
.. raw:: html
|
|
98
|
+
|
|
99
|
+
<p>Run a policy.
|
|
100
|
+
Immediately create a snapshot according to the snapshot lifecycle policy without waiting for the scheduled time.
|
|
101
|
+
The snapshot policy is normally applied according to its schedule, but you might want to manually run a policy before performing an upgrade or other maintenance.</p>
|
|
102
|
+
|
|
98
103
|
|
|
99
104
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-lifecycle.html>`_
|
|
100
105
|
|
|
@@ -144,9 +149,12 @@ class SlmClient(NamespacedClient):
|
|
|
144
149
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
145
150
|
) -> ObjectApiResponse[t.Any]:
|
|
146
151
|
"""
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
152
|
+
.. raw:: html
|
|
153
|
+
|
|
154
|
+
<p>Run a retention policy.
|
|
155
|
+
Manually apply the retention policy to force immediate removal of snapshots that are expired according to the snapshot lifecycle policy retention rules.
|
|
156
|
+
The retention policy is normally applied according to its schedule.</p>
|
|
157
|
+
|
|
150
158
|
|
|
151
159
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-execute-retention.html>`_
|
|
152
160
|
|
|
@@ -194,8 +202,11 @@ class SlmClient(NamespacedClient):
|
|
|
194
202
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
195
203
|
) -> ObjectApiResponse[t.Any]:
|
|
196
204
|
"""
|
|
197
|
-
|
|
198
|
-
|
|
205
|
+
.. raw:: html
|
|
206
|
+
|
|
207
|
+
<p>Get policy information.
|
|
208
|
+
Get snapshot lifecycle policy definitions and information about the latest snapshot attempts.</p>
|
|
209
|
+
|
|
199
210
|
|
|
200
211
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-policy.html>`_
|
|
201
212
|
|
|
@@ -248,8 +259,11 @@ class SlmClient(NamespacedClient):
|
|
|
248
259
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
249
260
|
) -> ObjectApiResponse[t.Any]:
|
|
250
261
|
"""
|
|
251
|
-
|
|
252
|
-
|
|
262
|
+
.. raw:: html
|
|
263
|
+
|
|
264
|
+
<p>Get snapshot lifecycle management statistics.
|
|
265
|
+
Get global and policy-level statistics about actions taken by snapshot lifecycle management.</p>
|
|
266
|
+
|
|
253
267
|
|
|
254
268
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-stats.html>`_
|
|
255
269
|
|
|
@@ -296,7 +310,10 @@ class SlmClient(NamespacedClient):
|
|
|
296
310
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
297
311
|
) -> ObjectApiResponse[t.Any]:
|
|
298
312
|
"""
|
|
299
|
-
|
|
313
|
+
.. raw:: html
|
|
314
|
+
|
|
315
|
+
<p>Get the snapshot lifecycle management status.</p>
|
|
316
|
+
|
|
300
317
|
|
|
301
318
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-get-status.html>`_
|
|
302
319
|
|
|
@@ -354,9 +371,13 @@ class SlmClient(NamespacedClient):
|
|
|
354
371
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
355
372
|
) -> ObjectApiResponse[t.Any]:
|
|
356
373
|
"""
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
374
|
+
.. raw:: html
|
|
375
|
+
|
|
376
|
+
<p>Create or update a policy.
|
|
377
|
+
Create or update a snapshot lifecycle policy.
|
|
378
|
+
If the policy already exists, this request increments the policy version.
|
|
379
|
+
Only the latest version of a policy is stored.</p>
|
|
380
|
+
|
|
360
381
|
|
|
361
382
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-put-policy.html>`_
|
|
362
383
|
|
|
@@ -437,9 +458,12 @@ class SlmClient(NamespacedClient):
|
|
|
437
458
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
438
459
|
) -> ObjectApiResponse[t.Any]:
|
|
439
460
|
"""
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
461
|
+
.. raw:: html
|
|
462
|
+
|
|
463
|
+
<p>Start snapshot lifecycle management.
|
|
464
|
+
Snapshot lifecycle management (SLM) starts automatically when a cluster is formed.
|
|
465
|
+
Manually starting SLM is necessary only if it has been stopped using the stop SLM API.</p>
|
|
466
|
+
|
|
443
467
|
|
|
444
468
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-start.html>`_
|
|
445
469
|
|
|
@@ -488,15 +512,16 @@ class SlmClient(NamespacedClient):
|
|
|
488
512
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
489
513
|
) -> ObjectApiResponse[t.Any]:
|
|
490
514
|
"""
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
515
|
+
.. raw:: html
|
|
516
|
+
|
|
517
|
+
<p>Stop snapshot lifecycle management.
|
|
518
|
+
Stop all snapshot lifecycle management (SLM) operations and the SLM plugin.
|
|
519
|
+
This API is useful when you are performing maintenance on a cluster and need to prevent SLM from performing any actions on your data streams or indices.
|
|
520
|
+
Stopping SLM does not stop any snapshots that are in progress.
|
|
521
|
+
You can manually trigger snapshots with the run snapshot lifecycle policy API even if SLM is stopped.</p>
|
|
522
|
+
<p>The API returns a response as soon as the request is acknowledged, but the plugin might continue to run until in-progress operations complete and it can be safely stopped.
|
|
523
|
+
Use the get snapshot lifecycle management status API to see if SLM is running.</p>
|
|
524
|
+
|
|
500
525
|
|
|
501
526
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/slm-api-stop.html>`_
|
|
502
527
|
|