elasticsearch 8.16.0__py3-none-any.whl → 8.17.1__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/_async/client/__init__.py +234 -96
- elasticsearch/_async/client/async_search.py +12 -22
- elasticsearch/_async/client/autoscaling.py +39 -4
- elasticsearch/_async/client/cat.py +90 -221
- elasticsearch/_async/client/ccr.py +85 -35
- elasticsearch/_async/client/cluster.py +160 -68
- elasticsearch/_async/client/connector.py +362 -25
- elasticsearch/_async/client/dangling_indices.py +3 -3
- elasticsearch/_async/client/enrich.py +6 -6
- elasticsearch/_async/client/eql.py +13 -11
- elasticsearch/_async/client/esql.py +3 -2
- elasticsearch/_async/client/features.py +27 -5
- elasticsearch/_async/client/fleet.py +1 -1
- elasticsearch/_async/client/graph.py +9 -3
- elasticsearch/_async/client/ilm.py +74 -39
- elasticsearch/_async/client/indices.py +633 -152
- elasticsearch/_async/client/inference.py +99 -16
- elasticsearch/_async/client/ingest.py +201 -23
- elasticsearch/_async/client/license.py +38 -22
- elasticsearch/_async/client/logstash.py +12 -9
- elasticsearch/_async/client/migration.py +17 -8
- elasticsearch/_async/client/ml.py +137 -79
- elasticsearch/_async/client/monitoring.py +3 -2
- elasticsearch/_async/client/nodes.py +37 -23
- elasticsearch/_async/client/query_rules.py +47 -25
- elasticsearch/_async/client/rollup.py +96 -21
- elasticsearch/_async/client/search_application.py +138 -9
- elasticsearch/_async/client/searchable_snapshots.py +33 -24
- elasticsearch/_async/client/security.py +751 -123
- elasticsearch/_async/client/shutdown.py +38 -15
- elasticsearch/_async/client/simulate.py +151 -0
- elasticsearch/_async/client/slm.py +147 -28
- elasticsearch/_async/client/snapshot.py +309 -25
- elasticsearch/_async/client/sql.py +79 -58
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +52 -29
- elasticsearch/_async/client/tasks.py +71 -31
- elasticsearch/_async/client/text_structure.py +468 -48
- elasticsearch/_async/client/transform.py +21 -14
- elasticsearch/_async/client/watcher.py +226 -60
- elasticsearch/_async/client/xpack.py +13 -8
- elasticsearch/_sync/client/__init__.py +234 -96
- elasticsearch/_sync/client/async_search.py +12 -22
- elasticsearch/_sync/client/autoscaling.py +39 -4
- elasticsearch/_sync/client/cat.py +90 -221
- elasticsearch/_sync/client/ccr.py +85 -35
- elasticsearch/_sync/client/cluster.py +160 -68
- elasticsearch/_sync/client/connector.py +362 -25
- elasticsearch/_sync/client/dangling_indices.py +3 -3
- elasticsearch/_sync/client/enrich.py +6 -6
- elasticsearch/_sync/client/eql.py +13 -11
- elasticsearch/_sync/client/esql.py +3 -2
- elasticsearch/_sync/client/features.py +27 -5
- elasticsearch/_sync/client/fleet.py +1 -1
- elasticsearch/_sync/client/graph.py +9 -3
- elasticsearch/_sync/client/ilm.py +74 -39
- elasticsearch/_sync/client/indices.py +633 -152
- elasticsearch/_sync/client/inference.py +99 -16
- elasticsearch/_sync/client/ingest.py +201 -23
- elasticsearch/_sync/client/license.py +38 -22
- elasticsearch/_sync/client/logstash.py +12 -9
- elasticsearch/_sync/client/migration.py +17 -8
- elasticsearch/_sync/client/ml.py +137 -79
- elasticsearch/_sync/client/monitoring.py +3 -2
- elasticsearch/_sync/client/nodes.py +37 -23
- elasticsearch/_sync/client/query_rules.py +47 -25
- elasticsearch/_sync/client/rollup.py +96 -21
- elasticsearch/_sync/client/search_application.py +138 -9
- elasticsearch/_sync/client/searchable_snapshots.py +33 -24
- elasticsearch/_sync/client/security.py +751 -123
- elasticsearch/_sync/client/shutdown.py +38 -15
- elasticsearch/_sync/client/simulate.py +151 -0
- elasticsearch/_sync/client/slm.py +147 -28
- elasticsearch/_sync/client/snapshot.py +309 -25
- elasticsearch/_sync/client/sql.py +79 -58
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +52 -29
- elasticsearch/_sync/client/tasks.py +71 -31
- elasticsearch/_sync/client/text_structure.py +468 -48
- elasticsearch/_sync/client/transform.py +21 -14
- elasticsearch/_sync/client/watcher.py +226 -60
- elasticsearch/_sync/client/xpack.py +13 -8
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +2 -0
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/METADATA +6 -4
- elasticsearch-8.17.1.dist-info/RECORD +119 -0
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/WHEEL +1 -1
- elasticsearch-8.16.0.dist-info/RECORD +0 -117
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.1.dist-info}/licenses/NOTICE +0 -0
|
@@ -36,10 +36,10 @@ class EqlClient(NamespacedClient):
|
|
|
36
36
|
pretty: t.Optional[bool] = None,
|
|
37
37
|
) -> ObjectApiResponse[t.Any]:
|
|
38
38
|
"""
|
|
39
|
-
|
|
40
|
-
deletes results for the search.
|
|
39
|
+
Delete an async EQL search. Delete an async EQL search or a stored synchronous
|
|
40
|
+
EQL search. The API also deletes results for the search.
|
|
41
41
|
|
|
42
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
42
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/eql-search-api.html>`_
|
|
43
43
|
|
|
44
44
|
:param id: Identifier for the search to delete. A search ID is provided in the
|
|
45
45
|
EQL search API's response for an async search. A search ID is also provided
|
|
@@ -83,10 +83,10 @@ class EqlClient(NamespacedClient):
|
|
|
83
83
|
] = None,
|
|
84
84
|
) -> ObjectApiResponse[t.Any]:
|
|
85
85
|
"""
|
|
86
|
-
|
|
87
|
-
stored synchronous EQL search.
|
|
86
|
+
Get async EQL search results. Get the current status and available results for
|
|
87
|
+
an async EQL search or a stored synchronous EQL search.
|
|
88
88
|
|
|
89
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
89
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-async-eql-search-api.html>`_
|
|
90
90
|
|
|
91
91
|
:param id: Identifier for the search.
|
|
92
92
|
:param keep_alive: Period for which the search and its results are stored on
|
|
@@ -134,10 +134,10 @@ class EqlClient(NamespacedClient):
|
|
|
134
134
|
pretty: t.Optional[bool] = None,
|
|
135
135
|
) -> ObjectApiResponse[t.Any]:
|
|
136
136
|
"""
|
|
137
|
-
|
|
138
|
-
search without returning results.
|
|
137
|
+
Get the async EQL status. Get the current status for an async EQL search or a
|
|
138
|
+
stored synchronous EQL search without returning results.
|
|
139
139
|
|
|
140
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
140
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-async-eql-status-api.html>`_
|
|
141
141
|
|
|
142
142
|
:param id: Identifier for the search.
|
|
143
143
|
"""
|
|
@@ -223,9 +223,11 @@ class EqlClient(NamespacedClient):
|
|
|
223
223
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
224
224
|
) -> ObjectApiResponse[t.Any]:
|
|
225
225
|
"""
|
|
226
|
-
|
|
226
|
+
Get EQL search results. Returns search results for an Event Query Language (EQL)
|
|
227
|
+
query. EQL assumes each document in a data stream or index corresponds to an
|
|
228
|
+
event.
|
|
227
229
|
|
|
228
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
230
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/eql-search-api.html>`_
|
|
229
231
|
|
|
230
232
|
:param index: The name of the index to scope the operation
|
|
231
233
|
:param query: EQL query you wish to run.
|
|
@@ -68,9 +68,10 @@ class EsqlClient(NamespacedClient):
|
|
|
68
68
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
69
69
|
) -> ObjectApiResponse[t.Any]:
|
|
70
70
|
"""
|
|
71
|
-
|
|
71
|
+
Run an ES|QL query. Get search results for an ES|QL (Elasticsearch query language)
|
|
72
|
+
query.
|
|
72
73
|
|
|
73
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
74
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/esql-rest.html>`_
|
|
74
75
|
|
|
75
76
|
:param query: The ES|QL query API accepts an ES|QL query string in the query
|
|
76
77
|
parameter, runs it, and returns the results.
|
|
@@ -35,10 +35,19 @@ class FeaturesClient(NamespacedClient):
|
|
|
35
35
|
pretty: t.Optional[bool] = None,
|
|
36
36
|
) -> ObjectApiResponse[t.Any]:
|
|
37
37
|
"""
|
|
38
|
-
|
|
39
|
-
field when creating a snapshot
|
|
38
|
+
Get the features. Get a list of features that can be included in snapshots using
|
|
39
|
+
the `feature_states` field when creating a snapshot. You can use this API to
|
|
40
|
+
determine which feature states to include when taking a snapshot. By default,
|
|
41
|
+
all feature states are included in a snapshot if that snapshot includes the global
|
|
42
|
+
state, or none if it does not. A feature state includes one or more system indices
|
|
43
|
+
necessary for a given feature to function. In order to ensure data integrity,
|
|
44
|
+
all system indices that comprise a feature state are snapshotted and restored
|
|
45
|
+
together. The features listed by this API are a combination of built-in features
|
|
46
|
+
and features defined by plugins. In order for a feature state to be listed in
|
|
47
|
+
this API and recognized as a valid feature state by the create snapshot API,
|
|
48
|
+
the plugin that defines that feature must be installed on the master node.
|
|
40
49
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
50
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-features-api.html>`_
|
|
42
51
|
"""
|
|
43
52
|
__path_parts: t.Dict[str, str] = {}
|
|
44
53
|
__path = "/_features"
|
|
@@ -72,9 +81,22 @@ class FeaturesClient(NamespacedClient):
|
|
|
72
81
|
pretty: t.Optional[bool] = None,
|
|
73
82
|
) -> ObjectApiResponse[t.Any]:
|
|
74
83
|
"""
|
|
75
|
-
|
|
84
|
+
Reset the features. Clear all of the state information stored in system indices
|
|
85
|
+
by Elasticsearch features, including the security and machine learning indices.
|
|
86
|
+
WARNING: Intended for development and testing use only. Do not reset features
|
|
87
|
+
on a production cluster. Return a cluster to the same state as a new installation
|
|
88
|
+
by resetting the feature state for all Elasticsearch features. This deletes all
|
|
89
|
+
state information stored in system indices. The response code is HTTP 200 if
|
|
90
|
+
the state is successfully reset for all features. It is HTTP 500 if the reset
|
|
91
|
+
operation failed for any feature. Note that select features might provide a way
|
|
92
|
+
to reset particular system indices. Using this API resets all features, both
|
|
93
|
+
those that are built-in and implemented as plugins. To list the features that
|
|
94
|
+
will be affected, use the get features API. IMPORTANT: The features installed
|
|
95
|
+
on the node you submit this request to are the features that will be reset. Run
|
|
96
|
+
on the master node if you have any doubts about which plugins are installed on
|
|
97
|
+
individual nodes.
|
|
76
98
|
|
|
77
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
99
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-snapshots.html>`_
|
|
78
100
|
"""
|
|
79
101
|
__path_parts: t.Dict[str, str] = {}
|
|
80
102
|
__path = "/_features/_reset"
|
|
@@ -49,7 +49,7 @@ class FleetClient(NamespacedClient):
|
|
|
49
49
|
Returns the current global checkpoints for an index. This API is design for internal
|
|
50
50
|
use by the fleet server project.
|
|
51
51
|
|
|
52
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
52
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-global-checkpoints.html>`_
|
|
53
53
|
|
|
54
54
|
:param index: A single index or index alias that resolves to a single index.
|
|
55
55
|
:param checkpoints: A comma separated list of previous global checkpoints. When
|
|
@@ -45,10 +45,16 @@ class GraphClient(NamespacedClient):
|
|
|
45
45
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
46
46
|
) -> ObjectApiResponse[t.Any]:
|
|
47
47
|
"""
|
|
48
|
-
|
|
49
|
-
data stream or index.
|
|
48
|
+
Explore graph analytics. Extract and summarize information about the documents
|
|
49
|
+
and terms in an Elasticsearch data stream or index. The easiest way to understand
|
|
50
|
+
the behavior of this API is to use the Graph UI to explore connections. An initial
|
|
51
|
+
request to the `_explore` API contains a seed query that identifies the documents
|
|
52
|
+
of interest and specifies the fields that define the vertices and connections
|
|
53
|
+
you want to include in the graph. Subsequent requests enable you to spider out
|
|
54
|
+
from one more vertices of interest. You can exclude vertices that have already
|
|
55
|
+
been returned.
|
|
50
56
|
|
|
51
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
57
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/graph-explore-api.html>`_
|
|
52
58
|
|
|
53
59
|
:param index: Name of the index.
|
|
54
60
|
:param connections: Specifies or more fields from which you want to extract terms
|
|
@@ -38,11 +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
|
+
Delete a lifecycle policy. You cannot delete policies that are currently in use.
|
|
42
|
+
If the policy is being used to manage any indices, the request fails and returns
|
|
43
|
+
an error.
|
|
44
44
|
|
|
45
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
45
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-delete-lifecycle.html>`_
|
|
46
46
|
|
|
47
47
|
:param name: Identifier for the policy.
|
|
48
48
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -93,11 +93,13 @@ class IlmClient(NamespacedClient):
|
|
|
93
93
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
94
94
|
) -> ObjectApiResponse[t.Any]:
|
|
95
95
|
"""
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
Explain the lifecycle state. Get the current lifecycle status for one or more
|
|
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.
|
|
99
101
|
|
|
100
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
102
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-explain-lifecycle.html>`_
|
|
101
103
|
|
|
102
104
|
:param index: Comma-separated list of data streams, indices, and aliases to target.
|
|
103
105
|
Supports wildcards (`*`). To target all data streams and indices, use `*`
|
|
@@ -157,9 +159,9 @@ class IlmClient(NamespacedClient):
|
|
|
157
159
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
158
160
|
) -> ObjectApiResponse[t.Any]:
|
|
159
161
|
"""
|
|
160
|
-
|
|
162
|
+
Get lifecycle policies.
|
|
161
163
|
|
|
162
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
164
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-lifecycle.html>`_
|
|
163
165
|
|
|
164
166
|
:param name: Identifier for the policy.
|
|
165
167
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -208,9 +210,9 @@ class IlmClient(NamespacedClient):
|
|
|
208
210
|
pretty: t.Optional[bool] = None,
|
|
209
211
|
) -> ObjectApiResponse[t.Any]:
|
|
210
212
|
"""
|
|
211
|
-
|
|
213
|
+
Get the ILM status. Get the current index lifecycle management status.
|
|
212
214
|
|
|
213
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
215
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-get-status.html>`_
|
|
214
216
|
"""
|
|
215
217
|
__path_parts: t.Dict[str, str] = {}
|
|
216
218
|
__path = "/_ilm/status"
|
|
@@ -249,12 +251,20 @@ class IlmClient(NamespacedClient):
|
|
|
249
251
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
250
252
|
) -> ObjectApiResponse[t.Any]:
|
|
251
253
|
"""
|
|
252
|
-
|
|
253
|
-
from using custom node attributes and attribute-based
|
|
254
|
-
data tiers,
|
|
255
|
-
enables ILM to automatically move the indices between data tiers.
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
Migrate to data tiers routing. Switch the indices, ILM policies, and legacy,
|
|
255
|
+
composable, and component templates from using custom node attributes and attribute-based
|
|
256
|
+
allocation filters to using data tiers. Optionally, delete one legacy index template.
|
|
257
|
+
Using node roles enables ILM to automatically move the indices between data tiers.
|
|
258
|
+
Migrating away from custom node attributes routing can be manually performed.
|
|
259
|
+
This API provides an automated way of performing three out of the four manual
|
|
260
|
+
steps listed in the migration guide: 1. Stop setting the custom hot attribute
|
|
261
|
+
on new indices. 1. Remove custom allocation settings from existing ILM policies.
|
|
262
|
+
1. Replace custom allocation settings from existing indices with the corresponding
|
|
263
|
+
tier preference. ILM must be stopped before performing the migration. Use the
|
|
264
|
+
stop ILM and get ILM status APIs to wait until the reported operation mode is
|
|
265
|
+
`STOPPED`.
|
|
266
|
+
|
|
267
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-migrate-to-data-tiers.html>`_
|
|
258
268
|
|
|
259
269
|
:param dry_run: If true, simulates the migration from node attributes based allocation
|
|
260
270
|
filters to data tiers, but does not perform the migration. This provides
|
|
@@ -312,13 +322,27 @@ class IlmClient(NamespacedClient):
|
|
|
312
322
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
313
323
|
) -> ObjectApiResponse[t.Any]:
|
|
314
324
|
"""
|
|
315
|
-
Manually
|
|
316
|
-
|
|
317
|
-
|
|
325
|
+
Move to a lifecycle step. Manually move an index into a specific step in the
|
|
326
|
+
lifecycle policy and run that step. WARNING: This operation can result in the
|
|
327
|
+
loss of data. Manually moving an index into a specific step runs that step even
|
|
328
|
+
if it has already been performed. This is a potentially destructive action and
|
|
329
|
+
this should be considered an expert level API. You must specify both the current
|
|
330
|
+
step and the step to be executed in the body of the request. The request will
|
|
331
|
+
fail if the current step does not match the step currently running for the index
|
|
332
|
+
This is to prevent the index from being moved from an unexpected step into the
|
|
333
|
+
next step. When specifying the target (`next_step`) to which the index will be
|
|
334
|
+
moved, either the name or both the action and name fields are optional. If only
|
|
335
|
+
the phase is specified, the index will move to the first step of the first action
|
|
336
|
+
in the target phase. If the phase and action are specified, the index will move
|
|
337
|
+
to the first step of the specified action in the specified phase. Only actions
|
|
338
|
+
specified in the ILM policy are considered valid. An index cannot move to a step
|
|
339
|
+
that is not part of its policy.
|
|
340
|
+
|
|
341
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-move-to-step.html>`_
|
|
318
342
|
|
|
319
343
|
:param index: The name of the index whose lifecycle step is to change
|
|
320
|
-
:param current_step:
|
|
321
|
-
:param next_step:
|
|
344
|
+
:param current_step: The step that the index is expected to be in.
|
|
345
|
+
:param next_step: The step that you want to run.
|
|
322
346
|
"""
|
|
323
347
|
if index in SKIP_IN_PATH:
|
|
324
348
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
@@ -375,10 +399,11 @@ class IlmClient(NamespacedClient):
|
|
|
375
399
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
376
400
|
) -> ObjectApiResponse[t.Any]:
|
|
377
401
|
"""
|
|
378
|
-
|
|
379
|
-
and the policy version is incremented.
|
|
402
|
+
Create or update a lifecycle policy. If the specified policy exists, it is replaced
|
|
403
|
+
and the policy version is incremented. NOTE: Only the latest version of the policy
|
|
404
|
+
is stored, you cannot revert to previous versions.
|
|
380
405
|
|
|
381
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
406
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-put-lifecycle.html>`_
|
|
382
407
|
|
|
383
408
|
:param name: Identifier for the policy.
|
|
384
409
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -435,9 +460,10 @@ class IlmClient(NamespacedClient):
|
|
|
435
460
|
pretty: t.Optional[bool] = None,
|
|
436
461
|
) -> ObjectApiResponse[t.Any]:
|
|
437
462
|
"""
|
|
438
|
-
|
|
463
|
+
Remove policies from an index. Remove the assigned lifecycle policies from an
|
|
464
|
+
index or a data stream's backing indices. It also stops managing the indices.
|
|
439
465
|
|
|
440
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
466
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-remove-policy.html>`_
|
|
441
467
|
|
|
442
468
|
:param index: The name of the index to remove policy on
|
|
443
469
|
"""
|
|
@@ -475,9 +501,12 @@ class IlmClient(NamespacedClient):
|
|
|
475
501
|
pretty: t.Optional[bool] = None,
|
|
476
502
|
) -> ObjectApiResponse[t.Any]:
|
|
477
503
|
"""
|
|
478
|
-
|
|
504
|
+
Retry a policy. Retry running the lifecycle policy for an index that is in the
|
|
505
|
+
ERROR step. The API sets the policy back to the step where the error occurred
|
|
506
|
+
and runs the step. Use the explain lifecycle state API to determine whether an
|
|
507
|
+
index is in the ERROR step.
|
|
479
508
|
|
|
480
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
509
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-retry-policy.html>`_
|
|
481
510
|
|
|
482
511
|
:param index: The name of the indices (comma-separated) whose failed lifecycle
|
|
483
512
|
step is to be retry
|
|
@@ -517,12 +546,14 @@ class IlmClient(NamespacedClient):
|
|
|
517
546
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
518
547
|
) -> ObjectApiResponse[t.Any]:
|
|
519
548
|
"""
|
|
520
|
-
Start the index lifecycle management
|
|
549
|
+
Start the ILM plugin. Start the index lifecycle management plugin if it is currently
|
|
550
|
+
stopped. ILM is started automatically when the cluster is formed. Restarting
|
|
551
|
+
ILM is necessary only when it has been stopped using the stop ILM API.
|
|
521
552
|
|
|
522
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
553
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-start.html>`_
|
|
523
554
|
|
|
524
|
-
:param master_timeout:
|
|
525
|
-
:param timeout:
|
|
555
|
+
:param master_timeout: Explicit operation timeout for connection to master node
|
|
556
|
+
:param timeout: Explicit operation timeout
|
|
526
557
|
"""
|
|
527
558
|
__path_parts: t.Dict[str, str] = {}
|
|
528
559
|
__path = "/_ilm/start"
|
|
@@ -561,13 +592,17 @@ class IlmClient(NamespacedClient):
|
|
|
561
592
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
562
593
|
) -> ObjectApiResponse[t.Any]:
|
|
563
594
|
"""
|
|
564
|
-
|
|
565
|
-
|
|
595
|
+
Stop the ILM plugin. Halt all lifecycle management operations and stop the index
|
|
596
|
+
lifecycle management plugin. This is useful when you are performing maintenance
|
|
597
|
+
on the cluster and need to prevent ILM from performing any actions on your indices.
|
|
598
|
+
The API returns as soon as the stop request has been acknowledged, but the plugin
|
|
599
|
+
might continue to run until in-progress operations complete and the plugin can
|
|
600
|
+
be safely stopped. Use the get ILM status API to check whether ILM is running.
|
|
566
601
|
|
|
567
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
602
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ilm-stop.html>`_
|
|
568
603
|
|
|
569
|
-
:param master_timeout:
|
|
570
|
-
:param timeout:
|
|
604
|
+
:param master_timeout: Explicit operation timeout for connection to master node
|
|
605
|
+
:param timeout: Explicit operation timeout
|
|
571
606
|
"""
|
|
572
607
|
__path_parts: t.Dict[str, str] = {}
|
|
573
608
|
__path = "/_ilm/stop"
|