elasticsearch 8.15.1__py3-none-any.whl → 8.16.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/_async/client/__init__.py +198 -117
- elasticsearch/_async/client/async_search.py +25 -25
- elasticsearch/_async/client/autoscaling.py +24 -11
- elasticsearch/_async/client/cat.py +75 -66
- elasticsearch/_async/client/ccr.py +13 -13
- elasticsearch/_async/client/cluster.py +40 -37
- elasticsearch/_async/client/connector.py +112 -51
- elasticsearch/_async/client/dangling_indices.py +27 -12
- elasticsearch/_async/client/enrich.py +10 -10
- elasticsearch/_async/client/eql.py +4 -4
- elasticsearch/_async/client/esql.py +42 -4
- elasticsearch/_async/client/features.py +4 -3
- elasticsearch/_async/client/fleet.py +10 -2
- elasticsearch/_async/client/graph.py +1 -1
- elasticsearch/_async/client/ilm.py +16 -12
- elasticsearch/_async/client/indices.py +176 -108
- elasticsearch/_async/client/inference.py +15 -5
- elasticsearch/_async/client/ingest.py +28 -12
- elasticsearch/_async/client/license.py +10 -10
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +294 -291
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +16 -8
- elasticsearch/_async/client/query_rules.py +61 -8
- elasticsearch/_async/client/rollup.py +23 -9
- elasticsearch/_async/client/search_application.py +35 -16
- elasticsearch/_async/client/searchable_snapshots.py +13 -5
- elasticsearch/_async/client/security.py +371 -180
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +97 -12
- elasticsearch/_async/client/sql.py +11 -7
- elasticsearch/_async/client/ssl.py +18 -3
- elasticsearch/_async/client/synonyms.py +7 -7
- elasticsearch/_async/client/tasks.py +19 -9
- elasticsearch/_async/client/text_structure.py +2 -2
- elasticsearch/_async/client/transform.py +78 -72
- elasticsearch/_async/client/utils.py +4 -0
- elasticsearch/_async/client/watcher.py +11 -11
- elasticsearch/_async/client/xpack.py +5 -3
- elasticsearch/_async/helpers.py +19 -10
- elasticsearch/_otel.py +2 -2
- elasticsearch/_sync/client/__init__.py +198 -117
- elasticsearch/_sync/client/async_search.py +25 -25
- elasticsearch/_sync/client/autoscaling.py +24 -11
- elasticsearch/_sync/client/cat.py +75 -66
- elasticsearch/_sync/client/ccr.py +13 -13
- elasticsearch/_sync/client/cluster.py +40 -37
- elasticsearch/_sync/client/connector.py +112 -51
- elasticsearch/_sync/client/dangling_indices.py +27 -12
- elasticsearch/_sync/client/enrich.py +10 -10
- elasticsearch/_sync/client/eql.py +4 -4
- elasticsearch/_sync/client/esql.py +42 -4
- elasticsearch/_sync/client/features.py +4 -3
- elasticsearch/_sync/client/fleet.py +10 -2
- elasticsearch/_sync/client/graph.py +1 -1
- elasticsearch/_sync/client/ilm.py +16 -12
- elasticsearch/_sync/client/indices.py +176 -108
- elasticsearch/_sync/client/inference.py +15 -5
- elasticsearch/_sync/client/ingest.py +28 -12
- elasticsearch/_sync/client/license.py +10 -10
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +294 -291
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +16 -8
- elasticsearch/_sync/client/query_rules.py +61 -8
- elasticsearch/_sync/client/rollup.py +23 -9
- elasticsearch/_sync/client/search_application.py +35 -16
- elasticsearch/_sync/client/searchable_snapshots.py +13 -5
- elasticsearch/_sync/client/security.py +371 -180
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +97 -12
- elasticsearch/_sync/client/sql.py +11 -7
- elasticsearch/_sync/client/ssl.py +18 -3
- elasticsearch/_sync/client/synonyms.py +7 -7
- elasticsearch/_sync/client/tasks.py +19 -9
- elasticsearch/_sync/client/text_structure.py +2 -2
- elasticsearch/_sync/client/transform.py +78 -72
- elasticsearch/_sync/client/utils.py +40 -0
- elasticsearch/_sync/client/watcher.py +11 -11
- elasticsearch/_sync/client/xpack.py +5 -3
- elasticsearch/_version.py +1 -1
- elasticsearch/exceptions.py +4 -0
- elasticsearch/helpers/actions.py +19 -10
- elasticsearch/helpers/errors.py +12 -4
- elasticsearch/helpers/vectorstore/_async/strategies.py +30 -9
- elasticsearch/helpers/vectorstore/_sync/strategies.py +30 -9
- {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/METADATA +5 -6
- elasticsearch-8.16.0.dist-info/RECORD +117 -0
- {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/WHEEL +1 -1
- elasticsearch-8.15.1.dist-info/RECORD +0 -117
- {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.15.1.dist-info → elasticsearch-8.16.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -39,7 +39,7 @@ class EqlClient(NamespacedClient):
|
|
|
39
39
|
Deletes an async EQL search or a stored synchronous EQL search. The API also
|
|
40
40
|
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.16/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
|
|
@@ -86,7 +86,7 @@ class EqlClient(NamespacedClient):
|
|
|
86
86
|
Returns the current status and available results for an async EQL search or a
|
|
87
87
|
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.16/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
|
|
@@ -137,7 +137,7 @@ class EqlClient(NamespacedClient):
|
|
|
137
137
|
Returns the current status for an async EQL search or a stored synchronous EQL
|
|
138
138
|
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.16/get-async-eql-status-api.html>`_
|
|
141
141
|
|
|
142
142
|
:param id: Identifier for the search.
|
|
143
143
|
"""
|
|
@@ -225,7 +225,7 @@ class EqlClient(NamespacedClient):
|
|
|
225
225
|
"""
|
|
226
226
|
Returns results matching a query expressed in Event Query Language (EQL)
|
|
227
227
|
|
|
228
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
228
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/eql-search-api.html>`_
|
|
229
229
|
|
|
230
230
|
:param index: The name of the index to scope the operation
|
|
231
231
|
:param query: EQL query you wish to run.
|
|
@@ -26,7 +26,15 @@ from .utils import _rewrite_parameters
|
|
|
26
26
|
class EsqlClient(NamespacedClient):
|
|
27
27
|
|
|
28
28
|
@_rewrite_parameters(
|
|
29
|
-
body_fields=(
|
|
29
|
+
body_fields=(
|
|
30
|
+
"query",
|
|
31
|
+
"columnar",
|
|
32
|
+
"filter",
|
|
33
|
+
"locale",
|
|
34
|
+
"params",
|
|
35
|
+
"profile",
|
|
36
|
+
"tables",
|
|
37
|
+
),
|
|
30
38
|
ignore_deprecated_options={"params"},
|
|
31
39
|
)
|
|
32
40
|
async def query(
|
|
@@ -35,20 +43,34 @@ class EsqlClient(NamespacedClient):
|
|
|
35
43
|
query: t.Optional[str] = None,
|
|
36
44
|
columnar: t.Optional[bool] = None,
|
|
37
45
|
delimiter: t.Optional[str] = None,
|
|
46
|
+
drop_null_columns: t.Optional[bool] = None,
|
|
38
47
|
error_trace: t.Optional[bool] = None,
|
|
39
48
|
filter: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
40
49
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
41
|
-
format: t.Optional[
|
|
50
|
+
format: t.Optional[
|
|
51
|
+
t.Union[
|
|
52
|
+
str,
|
|
53
|
+
t.Literal[
|
|
54
|
+
"arrow", "cbor", "csv", "json", "smile", "tsv", "txt", "yaml"
|
|
55
|
+
],
|
|
56
|
+
]
|
|
57
|
+
] = None,
|
|
42
58
|
human: t.Optional[bool] = None,
|
|
43
59
|
locale: t.Optional[str] = None,
|
|
44
|
-
params: t.Optional[
|
|
60
|
+
params: t.Optional[
|
|
61
|
+
t.Sequence[t.Union[None, bool, float, int, str, t.Any]]
|
|
62
|
+
] = None,
|
|
45
63
|
pretty: t.Optional[bool] = None,
|
|
64
|
+
profile: t.Optional[bool] = None,
|
|
65
|
+
tables: t.Optional[
|
|
66
|
+
t.Mapping[str, t.Mapping[str, t.Mapping[str, t.Any]]]
|
|
67
|
+
] = None,
|
|
46
68
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
47
69
|
) -> ObjectApiResponse[t.Any]:
|
|
48
70
|
"""
|
|
49
71
|
Executes an ES|QL request
|
|
50
72
|
|
|
51
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
73
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/esql-rest.html>`_
|
|
52
74
|
|
|
53
75
|
:param query: The ES|QL query API accepts an ES|QL query string in the query
|
|
54
76
|
parameter, runs it, and returns the results.
|
|
@@ -58,6 +80,10 @@ class EsqlClient(NamespacedClient):
|
|
|
58
80
|
row represents all the values of a certain column in the results.
|
|
59
81
|
:param delimiter: The character to use between values within a CSV row. Only
|
|
60
82
|
valid for the CSV format.
|
|
83
|
+
:param drop_null_columns: Should columns that are entirely `null` be removed
|
|
84
|
+
from the `columns` and `values` portion of the results? Defaults to `false`.
|
|
85
|
+
If `true` then the response will include an extra section under the name
|
|
86
|
+
`all_columns` which has the name of all columns.
|
|
61
87
|
:param filter: Specify a Query DSL query in the filter parameter to filter the
|
|
62
88
|
set of documents that an ES|QL query runs on.
|
|
63
89
|
:param format: A short version of the Accept header, e.g. json, yaml.
|
|
@@ -65,6 +91,12 @@ class EsqlClient(NamespacedClient):
|
|
|
65
91
|
:param params: To avoid any attempts of hacking or code injection, extract the
|
|
66
92
|
values in a separate list of parameters. Use question mark placeholders (?)
|
|
67
93
|
in the query string for each of the parameters.
|
|
94
|
+
:param profile: If provided and `true` the response will include an extra `profile`
|
|
95
|
+
object with information on how the query was executed. This information is
|
|
96
|
+
for human debugging and its format can change at any time but it can give
|
|
97
|
+
some insight into the performance of each part of the query.
|
|
98
|
+
:param tables: Tables to use with the LOOKUP operation. The top level key is
|
|
99
|
+
the table name and the next level key is the column name.
|
|
68
100
|
"""
|
|
69
101
|
if query is None and body is None:
|
|
70
102
|
raise ValueError("Empty value passed for parameter 'query'")
|
|
@@ -74,6 +106,8 @@ class EsqlClient(NamespacedClient):
|
|
|
74
106
|
__body: t.Dict[str, t.Any] = body if body is not None else {}
|
|
75
107
|
if delimiter is not None:
|
|
76
108
|
__query["delimiter"] = delimiter
|
|
109
|
+
if drop_null_columns is not None:
|
|
110
|
+
__query["drop_null_columns"] = drop_null_columns
|
|
77
111
|
if error_trace is not None:
|
|
78
112
|
__query["error_trace"] = error_trace
|
|
79
113
|
if filter_path is not None:
|
|
@@ -95,6 +129,10 @@ class EsqlClient(NamespacedClient):
|
|
|
95
129
|
__body["locale"] = locale
|
|
96
130
|
if params is not None:
|
|
97
131
|
__body["params"] = params
|
|
132
|
+
if profile is not None:
|
|
133
|
+
__body["profile"] = profile
|
|
134
|
+
if tables is not None:
|
|
135
|
+
__body["tables"] = tables
|
|
98
136
|
__headers = {"accept": "application/json", "content-type": "application/json"}
|
|
99
137
|
return await self.perform_request( # type: ignore[return-value]
|
|
100
138
|
"POST",
|
|
@@ -20,7 +20,7 @@ import typing as t
|
|
|
20
20
|
from elastic_transport import ObjectApiResponse
|
|
21
21
|
|
|
22
22
|
from ._base import NamespacedClient
|
|
23
|
-
from .utils import _rewrite_parameters
|
|
23
|
+
from .utils import Stability, _rewrite_parameters, _stability_warning
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class FeaturesClient(NamespacedClient):
|
|
@@ -38,7 +38,7 @@ class FeaturesClient(NamespacedClient):
|
|
|
38
38
|
Gets a list of features which can be included in snapshots using the feature_states
|
|
39
39
|
field when creating a snapshot
|
|
40
40
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-features-api.html>`_
|
|
42
42
|
"""
|
|
43
43
|
__path_parts: t.Dict[str, str] = {}
|
|
44
44
|
__path = "/_features"
|
|
@@ -62,6 +62,7 @@ class FeaturesClient(NamespacedClient):
|
|
|
62
62
|
)
|
|
63
63
|
|
|
64
64
|
@_rewrite_parameters()
|
|
65
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
65
66
|
async def reset_features(
|
|
66
67
|
self,
|
|
67
68
|
*,
|
|
@@ -73,7 +74,7 @@ class FeaturesClient(NamespacedClient):
|
|
|
73
74
|
"""
|
|
74
75
|
Resets the internal state of features, usually by deleting system indices
|
|
75
76
|
|
|
76
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
77
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/modules-snapshots.html>`_
|
|
77
78
|
"""
|
|
78
79
|
__path_parts: t.Dict[str, str] = {}
|
|
79
80
|
__path = "/_features/_reset"
|
|
@@ -20,7 +20,13 @@ import typing as t
|
|
|
20
20
|
from elastic_transport import ObjectApiResponse
|
|
21
21
|
|
|
22
22
|
from ._base import NamespacedClient
|
|
23
|
-
from .utils import
|
|
23
|
+
from .utils import (
|
|
24
|
+
SKIP_IN_PATH,
|
|
25
|
+
Stability,
|
|
26
|
+
_quote,
|
|
27
|
+
_rewrite_parameters,
|
|
28
|
+
_stability_warning,
|
|
29
|
+
)
|
|
24
30
|
|
|
25
31
|
|
|
26
32
|
class FleetClient(NamespacedClient):
|
|
@@ -43,7 +49,7 @@ class FleetClient(NamespacedClient):
|
|
|
43
49
|
Returns the current global checkpoints for an index. This API is design for internal
|
|
44
50
|
use by the fleet server project.
|
|
45
51
|
|
|
46
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
52
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/get-global-checkpoints.html>`_
|
|
47
53
|
|
|
48
54
|
:param index: A single index or index alias that resolves to a single index.
|
|
49
55
|
:param checkpoints: A comma separated list of previous global checkpoints. When
|
|
@@ -91,6 +97,7 @@ class FleetClient(NamespacedClient):
|
|
|
91
97
|
@_rewrite_parameters(
|
|
92
98
|
body_name="searches",
|
|
93
99
|
)
|
|
100
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
94
101
|
async def msearch(
|
|
95
102
|
self,
|
|
96
103
|
*,
|
|
@@ -277,6 +284,7 @@ class FleetClient(NamespacedClient):
|
|
|
277
284
|
"from": "from_",
|
|
278
285
|
},
|
|
279
286
|
)
|
|
287
|
+
@_stability_warning(Stability.EXPERIMENTAL)
|
|
280
288
|
async def search(
|
|
281
289
|
self,
|
|
282
290
|
*,
|
|
@@ -48,7 +48,7 @@ class GraphClient(NamespacedClient):
|
|
|
48
48
|
Extracts and summarizes information about the documents and terms in an Elasticsearch
|
|
49
49
|
data stream or index.
|
|
50
50
|
|
|
51
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
51
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/graph-explore-api.html>`_
|
|
52
52
|
|
|
53
53
|
:param index: Name of the index.
|
|
54
54
|
:param connections: Specifies or more fields from which you want to extract terms
|
|
@@ -42,7 +42,7 @@ class IlmClient(NamespacedClient):
|
|
|
42
42
|
that are currently in use. If the policy is being used to manage any indices,
|
|
43
43
|
the request fails and returns an error.
|
|
44
44
|
|
|
45
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
45
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/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
|
|
@@ -97,7 +97,7 @@ class IlmClient(NamespacedClient):
|
|
|
97
97
|
currently executing phase, action, and step. Shows when the index entered each
|
|
98
98
|
one, the definition of the running phase, and information about any failures.
|
|
99
99
|
|
|
100
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
100
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-explain-lifecycle.html>`_
|
|
101
101
|
|
|
102
102
|
:param index: Comma-separated list of data streams, indices, and aliases to target.
|
|
103
103
|
Supports wildcards (`*`). To target all data streams and indices, use `*`
|
|
@@ -159,7 +159,7 @@ class IlmClient(NamespacedClient):
|
|
|
159
159
|
"""
|
|
160
160
|
Retrieves a lifecycle policy.
|
|
161
161
|
|
|
162
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
162
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-get-lifecycle.html>`_
|
|
163
163
|
|
|
164
164
|
:param name: Identifier for the policy.
|
|
165
165
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -210,7 +210,7 @@ class IlmClient(NamespacedClient):
|
|
|
210
210
|
"""
|
|
211
211
|
Retrieves the current index lifecycle management (ILM) status.
|
|
212
212
|
|
|
213
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
213
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-get-status.html>`_
|
|
214
214
|
"""
|
|
215
215
|
__path_parts: t.Dict[str, str] = {}
|
|
216
216
|
__path = "/_ilm/status"
|
|
@@ -254,7 +254,7 @@ class IlmClient(NamespacedClient):
|
|
|
254
254
|
data tiers, and optionally deletes one legacy index template.+ Using node roles
|
|
255
255
|
enables ILM to automatically move the indices between data tiers.
|
|
256
256
|
|
|
257
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
257
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-migrate-to-data-tiers.html>`_
|
|
258
258
|
|
|
259
259
|
:param dry_run: If true, simulates the migration from node attributes based allocation
|
|
260
260
|
filters to data tiers, but does not perform the migration. This provides
|
|
@@ -304,17 +304,17 @@ class IlmClient(NamespacedClient):
|
|
|
304
304
|
*,
|
|
305
305
|
index: str,
|
|
306
306
|
current_step: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
307
|
+
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
307
308
|
error_trace: t.Optional[bool] = None,
|
|
308
309
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
309
310
|
human: t.Optional[bool] = None,
|
|
310
|
-
next_step: t.Optional[t.Mapping[str, t.Any]] = None,
|
|
311
311
|
pretty: t.Optional[bool] = None,
|
|
312
312
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
313
313
|
) -> ObjectApiResponse[t.Any]:
|
|
314
314
|
"""
|
|
315
315
|
Manually moves an index into the specified step and executes that step.
|
|
316
316
|
|
|
317
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
317
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-move-to-step.html>`_
|
|
318
318
|
|
|
319
319
|
:param index: The name of the index whose lifecycle step is to change
|
|
320
320
|
:param current_step:
|
|
@@ -322,6 +322,10 @@ class IlmClient(NamespacedClient):
|
|
|
322
322
|
"""
|
|
323
323
|
if index in SKIP_IN_PATH:
|
|
324
324
|
raise ValueError("Empty value passed for parameter 'index'")
|
|
325
|
+
if current_step is None and body is None:
|
|
326
|
+
raise ValueError("Empty value passed for parameter 'current_step'")
|
|
327
|
+
if next_step is None and body is None:
|
|
328
|
+
raise ValueError("Empty value passed for parameter 'next_step'")
|
|
325
329
|
__path_parts: t.Dict[str, str] = {"index": _quote(index)}
|
|
326
330
|
__path = f'/_ilm/move/{__path_parts["index"]}'
|
|
327
331
|
__query: t.Dict[str, t.Any] = {}
|
|
@@ -374,7 +378,7 @@ class IlmClient(NamespacedClient):
|
|
|
374
378
|
Creates a lifecycle policy. If the specified policy exists, the policy is replaced
|
|
375
379
|
and the policy version is incremented.
|
|
376
380
|
|
|
377
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
381
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-put-lifecycle.html>`_
|
|
378
382
|
|
|
379
383
|
:param name: Identifier for the policy.
|
|
380
384
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -433,7 +437,7 @@ class IlmClient(NamespacedClient):
|
|
|
433
437
|
"""
|
|
434
438
|
Removes the assigned lifecycle policy and stops managing the specified index
|
|
435
439
|
|
|
436
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
440
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-remove-policy.html>`_
|
|
437
441
|
|
|
438
442
|
:param index: The name of the index to remove policy on
|
|
439
443
|
"""
|
|
@@ -473,7 +477,7 @@ class IlmClient(NamespacedClient):
|
|
|
473
477
|
"""
|
|
474
478
|
Retries executing the policy for an index that is in the ERROR step.
|
|
475
479
|
|
|
476
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
480
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-retry-policy.html>`_
|
|
477
481
|
|
|
478
482
|
:param index: The name of the indices (comma-separated) whose failed lifecycle
|
|
479
483
|
step is to be retry
|
|
@@ -515,7 +519,7 @@ class IlmClient(NamespacedClient):
|
|
|
515
519
|
"""
|
|
516
520
|
Start the index lifecycle management (ILM) plugin.
|
|
517
521
|
|
|
518
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
522
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-start.html>`_
|
|
519
523
|
|
|
520
524
|
:param master_timeout:
|
|
521
525
|
:param timeout:
|
|
@@ -560,7 +564,7 @@ class IlmClient(NamespacedClient):
|
|
|
560
564
|
Halts all lifecycle management operations and stops the index lifecycle management
|
|
561
565
|
(ILM) plugin
|
|
562
566
|
|
|
563
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
567
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.16/ilm-stop.html>`_
|
|
564
568
|
|
|
565
569
|
:param master_timeout:
|
|
566
570
|
:param timeout:
|