elasticsearch 8.17.1__py3-none-any.whl → 9.0.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 +2125 -1053
- elasticsearch/_async/client/_base.py +1 -2
- elasticsearch/_async/client/async_search.py +46 -35
- elasticsearch/_async/client/autoscaling.py +32 -26
- elasticsearch/_async/client/cat.py +244 -176
- elasticsearch/_async/client/ccr.py +268 -128
- elasticsearch/_async/client/cluster.py +191 -164
- elasticsearch/_async/client/connector.py +226 -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 +351 -7
- elasticsearch/_async/client/features.py +37 -27
- elasticsearch/_async/client/fleet.py +32 -22
- elasticsearch/_async/client/graph.py +10 -9
- elasticsearch/_async/client/ilm.py +115 -77
- elasticsearch/_async/client/indices.py +1119 -772
- elasticsearch/_async/client/inference.py +1933 -84
- 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 +646 -374
- elasticsearch/_async/client/monitoring.py +6 -3
- elasticsearch/_async/client/nodes.py +52 -54
- 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 +903 -562
- 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 +454 -327
- 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 +117 -73
- elasticsearch/_async/client/xpack.py +18 -9
- elasticsearch/_async/helpers.py +1 -2
- elasticsearch/_sync/client/__init__.py +2125 -1053
- elasticsearch/_sync/client/_base.py +1 -2
- elasticsearch/_sync/client/async_search.py +46 -35
- elasticsearch/_sync/client/autoscaling.py +32 -26
- elasticsearch/_sync/client/cat.py +244 -176
- elasticsearch/_sync/client/ccr.py +268 -128
- elasticsearch/_sync/client/cluster.py +191 -164
- elasticsearch/_sync/client/connector.py +226 -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 +351 -7
- elasticsearch/_sync/client/features.py +37 -27
- elasticsearch/_sync/client/fleet.py +32 -22
- elasticsearch/_sync/client/graph.py +10 -9
- elasticsearch/_sync/client/ilm.py +115 -77
- elasticsearch/_sync/client/indices.py +1119 -772
- elasticsearch/_sync/client/inference.py +1933 -84
- 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 +646 -374
- elasticsearch/_sync/client/monitoring.py +6 -3
- elasticsearch/_sync/client/nodes.py +52 -54
- 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 +903 -562
- 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 +454 -327
- 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 -41
- elasticsearch/_sync/client/watcher.py +117 -73
- 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 +237 -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 +230 -0
- elasticsearch/dsl/_sync/update_by_query.py +45 -0
- elasticsearch/dsl/aggs.py +3734 -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 +4392 -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 +2822 -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 +1053 -0
- elasticsearch/dsl/serializer.py +34 -0
- elasticsearch/dsl/types.py +6453 -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 +144 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_async/strategies.py +12 -12
- elasticsearch/helpers/vectorstore/_sync/strategies.py +12 -12
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/METADATA +12 -15
- elasticsearch-9.0.0.dist-info/RECORD +160 -0
- elasticsearch/transport.py +0 -57
- elasticsearch-8.17.1.dist-info/RECORD +0 -119
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.1.dist-info → elasticsearch-9.0.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -38,11 +38,13 @@ 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
|
-
If the policy is being used to manage any indices, the request fails and returns
|
|
43
|
-
an error.
|
|
41
|
+
.. raw:: html
|
|
44
42
|
|
|
45
|
-
|
|
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
|
+
|
|
46
|
+
|
|
47
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-delete-lifecycle>`_
|
|
46
48
|
|
|
47
49
|
:param name: Identifier for the policy.
|
|
48
50
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -90,16 +92,17 @@ class IlmClient(NamespacedClient):
|
|
|
90
92
|
only_errors: t.Optional[bool] = None,
|
|
91
93
|
only_managed: t.Optional[bool] = None,
|
|
92
94
|
pretty: t.Optional[bool] = None,
|
|
93
|
-
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
94
95
|
) -> ObjectApiResponse[t.Any]:
|
|
95
96
|
"""
|
|
96
|
-
|
|
97
|
-
indices. For data streams, the API retrieves the current lifecycle status for
|
|
98
|
-
the stream's backing indices. The response indicates when the index entered each
|
|
99
|
-
lifecycle state, provides the definition of the running phase, and information
|
|
100
|
-
about any failures.
|
|
97
|
+
.. raw:: html
|
|
101
98
|
|
|
102
|
-
|
|
99
|
+
<p>Explain the lifecycle state.
|
|
100
|
+
Get the current lifecycle status for one or more indices.
|
|
101
|
+
For data streams, the API retrieves the current lifecycle status for the stream's backing indices.</p>
|
|
102
|
+
<p>The response indicates when the index entered each lifecycle state, provides the definition of the running phase, and information about any failures.</p>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-explain-lifecycle>`_
|
|
103
106
|
|
|
104
107
|
:param index: Comma-separated list of data streams, indices, and aliases to target.
|
|
105
108
|
Supports wildcards (`*`). To target all data streams and indices, use `*`
|
|
@@ -112,8 +115,6 @@ class IlmClient(NamespacedClient):
|
|
|
112
115
|
while executing the policy, or attempting to use a policy that does not exist.
|
|
113
116
|
:param only_managed: Filters the returned indices to only indices that are managed
|
|
114
117
|
by ILM.
|
|
115
|
-
:param timeout: Period to wait for a response. If no response is received before
|
|
116
|
-
the timeout expires, the request fails and returns an error.
|
|
117
118
|
"""
|
|
118
119
|
if index in SKIP_IN_PATH:
|
|
119
120
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
@@ -134,8 +135,6 @@ class IlmClient(NamespacedClient):
|
|
|
134
135
|
__query["only_managed"] = only_managed
|
|
135
136
|
if pretty is not None:
|
|
136
137
|
__query["pretty"] = pretty
|
|
137
|
-
if timeout is not None:
|
|
138
|
-
__query["timeout"] = timeout
|
|
139
138
|
__headers = {"accept": "application/json"}
|
|
140
139
|
return await self.perform_request( # type: ignore[return-value]
|
|
141
140
|
"GET",
|
|
@@ -159,9 +158,12 @@ class IlmClient(NamespacedClient):
|
|
|
159
158
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
160
159
|
) -> ObjectApiResponse[t.Any]:
|
|
161
160
|
"""
|
|
162
|
-
|
|
161
|
+
.. raw:: html
|
|
162
|
+
|
|
163
|
+
<p>Get lifecycle policies.</p>
|
|
164
|
+
|
|
163
165
|
|
|
164
|
-
`<https://www.elastic.co/
|
|
166
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-lifecycle>`_
|
|
165
167
|
|
|
166
168
|
:param name: Identifier for the policy.
|
|
167
169
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -210,9 +212,13 @@ class IlmClient(NamespacedClient):
|
|
|
210
212
|
pretty: t.Optional[bool] = None,
|
|
211
213
|
) -> ObjectApiResponse[t.Any]:
|
|
212
214
|
"""
|
|
213
|
-
|
|
215
|
+
.. raw:: html
|
|
214
216
|
|
|
215
|
-
|
|
217
|
+
<p>Get the ILM status.</p>
|
|
218
|
+
<p>Get the current index lifecycle management status.</p>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-get-status>`_
|
|
216
222
|
"""
|
|
217
223
|
__path_parts: t.Dict[str, str] = {}
|
|
218
224
|
__path = "/_ilm/status"
|
|
@@ -246,30 +252,39 @@ class IlmClient(NamespacedClient):
|
|
|
246
252
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
247
253
|
human: t.Optional[bool] = None,
|
|
248
254
|
legacy_template_to_delete: t.Optional[str] = None,
|
|
255
|
+
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
249
256
|
node_attribute: t.Optional[str] = None,
|
|
250
257
|
pretty: t.Optional[bool] = None,
|
|
251
258
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
252
259
|
) -> ObjectApiResponse[t.Any]:
|
|
253
260
|
"""
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
261
|
+
.. raw:: html
|
|
262
|
+
|
|
263
|
+
<p>Migrate to data tiers routing.
|
|
264
|
+
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.
|
|
265
|
+
Optionally, delete one legacy index template.
|
|
266
|
+
Using node roles enables ILM to automatically move the indices between data tiers.</p>
|
|
267
|
+
<p>Migrating away from custom node attributes routing can be manually performed.
|
|
268
|
+
This API provides an automated way of performing three out of the four manual steps listed in the migration guide:</p>
|
|
269
|
+
<ol>
|
|
270
|
+
<li>Stop setting the custom hot attribute on new indices.</li>
|
|
271
|
+
<li>Remove custom allocation settings from existing ILM policies.</li>
|
|
272
|
+
<li>Replace custom allocation settings from existing indices with the corresponding tier preference.</li>
|
|
273
|
+
</ol>
|
|
274
|
+
<p>ILM must be stopped before performing the migration.
|
|
275
|
+
Use the stop ILM and get ILM status APIs to wait until the reported operation mode is <code>STOPPED</code>.</p>
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-migrate-to-data-tiers>`_
|
|
268
279
|
|
|
269
280
|
:param dry_run: If true, simulates the migration from node attributes based allocation
|
|
270
281
|
filters to data tiers, but does not perform the migration. This provides
|
|
271
282
|
a way to retrieve the indices and ILM policies that need to be migrated.
|
|
272
283
|
:param legacy_template_to_delete:
|
|
284
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
285
|
+
If no response is received before the timeout expires, the request fails
|
|
286
|
+
and returns an error. It can also be set to `-1` to indicate that the request
|
|
287
|
+
should never timeout.
|
|
273
288
|
:param node_attribute:
|
|
274
289
|
"""
|
|
275
290
|
__path_parts: t.Dict[str, str] = {}
|
|
@@ -284,6 +299,8 @@ class IlmClient(NamespacedClient):
|
|
|
284
299
|
__query["filter_path"] = filter_path
|
|
285
300
|
if human is not None:
|
|
286
301
|
__query["human"] = human
|
|
302
|
+
if master_timeout is not None:
|
|
303
|
+
__query["master_timeout"] = master_timeout
|
|
287
304
|
if pretty is not None:
|
|
288
305
|
__query["pretty"] = pretty
|
|
289
306
|
if not __body:
|
|
@@ -322,23 +339,22 @@ class IlmClient(NamespacedClient):
|
|
|
322
339
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
323
340
|
) -> ObjectApiResponse[t.Any]:
|
|
324
341
|
"""
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-move-to-step.html>`_
|
|
342
|
+
.. raw:: html
|
|
343
|
+
|
|
344
|
+
<p>Move to a lifecycle step.
|
|
345
|
+
Manually move an index into a specific step in the lifecycle policy and run that step.</p>
|
|
346
|
+
<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>
|
|
347
|
+
<p>You must specify both the current step and the step to be executed in the body of the request.
|
|
348
|
+
The request will fail if the current step does not match the step currently running for the index
|
|
349
|
+
This is to prevent the index from being moved from an unexpected step into the next step.</p>
|
|
350
|
+
<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.
|
|
351
|
+
If only the phase is specified, the index will move to the first step of the first action in the target phase.
|
|
352
|
+
If the phase and action are specified, the index will move to the first step of the specified action in the specified phase.
|
|
353
|
+
Only actions specified in the ILM policy are considered valid.
|
|
354
|
+
An index cannot move to a step that is not part of its policy.</p>
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-move-to-step>`_
|
|
342
358
|
|
|
343
359
|
:param index: The name of the index whose lifecycle step is to change
|
|
344
360
|
:param current_step: The step that the index is expected to be in.
|
|
@@ -399,11 +415,14 @@ class IlmClient(NamespacedClient):
|
|
|
399
415
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
400
416
|
) -> ObjectApiResponse[t.Any]:
|
|
401
417
|
"""
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
418
|
+
.. raw:: html
|
|
419
|
+
|
|
420
|
+
<p>Create or update a lifecycle policy.
|
|
421
|
+
If the specified policy exists, it is replaced and the policy version is incremented.</p>
|
|
422
|
+
<p>NOTE: Only the latest version of the policy is stored, you cannot revert to previous versions.</p>
|
|
423
|
+
|
|
405
424
|
|
|
406
|
-
`<https://www.elastic.co/
|
|
425
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-put-lifecycle>`_
|
|
407
426
|
|
|
408
427
|
:param name: Identifier for the policy.
|
|
409
428
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -460,10 +479,14 @@ class IlmClient(NamespacedClient):
|
|
|
460
479
|
pretty: t.Optional[bool] = None,
|
|
461
480
|
) -> ObjectApiResponse[t.Any]:
|
|
462
481
|
"""
|
|
463
|
-
|
|
464
|
-
index or a data stream's backing indices. It also stops managing the indices.
|
|
482
|
+
.. raw:: html
|
|
465
483
|
|
|
466
|
-
|
|
484
|
+
<p>Remove policies from an index.
|
|
485
|
+
Remove the assigned lifecycle policies from an index or a data stream's backing indices.
|
|
486
|
+
It also stops managing the indices.</p>
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-remove-policy>`_
|
|
467
490
|
|
|
468
491
|
:param index: The name of the index to remove policy on
|
|
469
492
|
"""
|
|
@@ -501,12 +524,15 @@ class IlmClient(NamespacedClient):
|
|
|
501
524
|
pretty: t.Optional[bool] = None,
|
|
502
525
|
) -> ObjectApiResponse[t.Any]:
|
|
503
526
|
"""
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
527
|
+
.. raw:: html
|
|
528
|
+
|
|
529
|
+
<p>Retry a policy.
|
|
530
|
+
Retry running the lifecycle policy for an index that is in the ERROR step.
|
|
531
|
+
The API sets the policy back to the step where the error occurred and runs the step.
|
|
532
|
+
Use the explain lifecycle state API to determine whether an index is in the ERROR step.</p>
|
|
508
533
|
|
|
509
|
-
|
|
534
|
+
|
|
535
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-retry>`_
|
|
510
536
|
|
|
511
537
|
:param index: The name of the indices (comma-separated) whose failed lifecycle
|
|
512
538
|
step is to be retry
|
|
@@ -546,14 +572,21 @@ class IlmClient(NamespacedClient):
|
|
|
546
572
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
547
573
|
) -> ObjectApiResponse[t.Any]:
|
|
548
574
|
"""
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
575
|
+
.. raw:: html
|
|
576
|
+
|
|
577
|
+
<p>Start the ILM plugin.
|
|
578
|
+
Start the index lifecycle management plugin if it is currently stopped.
|
|
579
|
+
ILM is started automatically when the cluster is formed.
|
|
580
|
+
Restarting ILM is necessary only when it has been stopped using the stop ILM API.</p>
|
|
581
|
+
|
|
552
582
|
|
|
553
|
-
`<https://www.elastic.co/
|
|
583
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-start>`_
|
|
554
584
|
|
|
555
|
-
:param master_timeout:
|
|
556
|
-
|
|
585
|
+
:param master_timeout: Period to wait for a connection to the master node. If
|
|
586
|
+
no response is received before the timeout expires, the request fails and
|
|
587
|
+
returns an error.
|
|
588
|
+
:param timeout: Period to wait for a response. If no response is received before
|
|
589
|
+
the timeout expires, the request fails and returns an error.
|
|
557
590
|
"""
|
|
558
591
|
__path_parts: t.Dict[str, str] = {}
|
|
559
592
|
__path = "/_ilm/start"
|
|
@@ -592,17 +625,22 @@ class IlmClient(NamespacedClient):
|
|
|
592
625
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
593
626
|
) -> ObjectApiResponse[t.Any]:
|
|
594
627
|
"""
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
628
|
+
.. raw:: html
|
|
629
|
+
|
|
630
|
+
<p>Stop the ILM plugin.
|
|
631
|
+
Halt all lifecycle management operations and stop the index lifecycle management plugin.
|
|
632
|
+
This is useful when you are performing maintenance on the cluster and need to prevent ILM from performing any actions on your indices.</p>
|
|
633
|
+
<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.
|
|
634
|
+
Use the get ILM status API to check whether ILM is running.</p>
|
|
635
|
+
|
|
601
636
|
|
|
602
|
-
`<https://www.elastic.co/
|
|
637
|
+
`<https://www.elastic.co/docs/api/doc/elasticsearch/v9/operation/operation-ilm-stop>`_
|
|
603
638
|
|
|
604
|
-
:param master_timeout:
|
|
605
|
-
|
|
639
|
+
:param master_timeout: Period to wait for a connection to the master node. If
|
|
640
|
+
no response is received before the timeout expires, the request fails and
|
|
641
|
+
returns an error.
|
|
642
|
+
:param timeout: Period to wait for a response. If no response is received before
|
|
643
|
+
the timeout expires, the request fails and returns an error.
|
|
606
644
|
"""
|
|
607
645
|
__path_parts: t.Dict[str, str] = {}
|
|
608
646
|
__path = "/_ilm/stop"
|