elasticsearch9 9.1.2__py3-none-any.whl → 9.1.3__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.
- elasticsearch9/_async/client/__init__.py +67 -65
- elasticsearch9/_async/client/async_search.py +3 -3
- elasticsearch9/_async/client/autoscaling.py +8 -4
- elasticsearch9/_async/client/cat.py +40 -2
- elasticsearch9/_async/client/ccr.py +10 -10
- elasticsearch9/_async/client/cluster.py +34 -33
- elasticsearch9/_async/client/connector.py +42 -41
- elasticsearch9/_async/client/dangling_indices.py +8 -12
- elasticsearch9/_async/client/enrich.py +10 -10
- elasticsearch9/_async/client/eql.py +10 -10
- elasticsearch9/_async/client/esql.py +16 -16
- elasticsearch9/_async/client/features.py +6 -6
- elasticsearch9/_async/client/fleet.py +8 -12
- elasticsearch9/_async/client/graph.py +3 -7
- elasticsearch9/_async/client/ilm.py +20 -28
- elasticsearch9/_async/client/indices.py +140 -160
- elasticsearch9/_async/client/inference.py +30 -126
- elasticsearch9/_async/client/ingest.py +9 -9
- elasticsearch9/_async/client/license.py +5 -7
- elasticsearch9/_async/client/logstash.py +4 -4
- elasticsearch9/_async/client/migration.py +6 -6
- elasticsearch9/_async/client/ml.py +125 -85
- elasticsearch9/_async/client/monitoring.py +4 -3
- elasticsearch9/_async/client/nodes.py +15 -15
- elasticsearch9/_async/client/query_rules.py +16 -16
- elasticsearch9/_async/client/rollup.py +21 -21
- elasticsearch9/_async/client/search_application.py +19 -19
- elasticsearch9/_async/client/searchable_snapshots.py +10 -10
- elasticsearch9/_async/client/security.py +8 -7
- elasticsearch9/_async/client/shutdown.py +9 -4
- elasticsearch9/_async/client/simulate.py +4 -4
- elasticsearch9/_async/client/slm.py +18 -22
- elasticsearch9/_async/client/snapshot.py +20 -20
- elasticsearch9/_async/client/sql.py +10 -10
- elasticsearch9/_async/client/streams.py +6 -6
- elasticsearch9/_async/client/synonyms.py +10 -10
- elasticsearch9/_async/client/tasks.py +8 -8
- elasticsearch9/_async/client/text_structure.py +13 -9
- elasticsearch9/_async/client/transform.py +51 -12
- elasticsearch9/_async/client/utils.py +4 -2
- elasticsearch9/_async/client/watcher.py +26 -26
- elasticsearch9/_async/client/xpack.py +6 -5
- elasticsearch9/_sync/client/__init__.py +69 -65
- elasticsearch9/_sync/client/async_search.py +3 -3
- elasticsearch9/_sync/client/autoscaling.py +8 -4
- elasticsearch9/_sync/client/cat.py +40 -2
- elasticsearch9/_sync/client/ccr.py +10 -10
- elasticsearch9/_sync/client/cluster.py +34 -33
- elasticsearch9/_sync/client/connector.py +42 -41
- elasticsearch9/_sync/client/dangling_indices.py +8 -12
- elasticsearch9/_sync/client/enrich.py +10 -10
- elasticsearch9/_sync/client/eql.py +10 -10
- elasticsearch9/_sync/client/esql.py +16 -16
- elasticsearch9/_sync/client/features.py +6 -6
- elasticsearch9/_sync/client/fleet.py +8 -12
- elasticsearch9/_sync/client/graph.py +3 -7
- elasticsearch9/_sync/client/ilm.py +20 -28
- elasticsearch9/_sync/client/indices.py +140 -160
- elasticsearch9/_sync/client/inference.py +30 -126
- elasticsearch9/_sync/client/ingest.py +9 -9
- elasticsearch9/_sync/client/license.py +5 -7
- elasticsearch9/_sync/client/logstash.py +4 -4
- elasticsearch9/_sync/client/migration.py +6 -6
- elasticsearch9/_sync/client/ml.py +125 -85
- elasticsearch9/_sync/client/monitoring.py +4 -3
- elasticsearch9/_sync/client/nodes.py +15 -15
- elasticsearch9/_sync/client/query_rules.py +16 -16
- elasticsearch9/_sync/client/rollup.py +21 -21
- elasticsearch9/_sync/client/search_application.py +19 -19
- elasticsearch9/_sync/client/searchable_snapshots.py +10 -10
- elasticsearch9/_sync/client/security.py +8 -7
- elasticsearch9/_sync/client/shutdown.py +9 -4
- elasticsearch9/_sync/client/simulate.py +4 -4
- elasticsearch9/_sync/client/slm.py +18 -22
- elasticsearch9/_sync/client/snapshot.py +20 -20
- elasticsearch9/_sync/client/sql.py +10 -10
- elasticsearch9/_sync/client/streams.py +6 -6
- elasticsearch9/_sync/client/synonyms.py +10 -10
- elasticsearch9/_sync/client/tasks.py +8 -8
- elasticsearch9/_sync/client/text_structure.py +13 -9
- elasticsearch9/_sync/client/transform.py +51 -12
- elasticsearch9/_sync/client/utils.py +16 -2
- elasticsearch9/_sync/client/watcher.py +26 -26
- elasticsearch9/_sync/client/xpack.py +6 -5
- elasticsearch9/_version.py +2 -2
- elasticsearch9/dsl/_async/document.py +4 -5
- elasticsearch9/dsl/_async/index.py +1 -1
- elasticsearch9/dsl/_async/search.py +2 -3
- elasticsearch9/dsl/_sync/document.py +4 -5
- elasticsearch9/dsl/_sync/index.py +1 -1
- elasticsearch9/dsl/_sync/search.py +2 -3
- elasticsearch9/dsl/aggs.py +3 -3
- elasticsearch9/dsl/async_connections.py +1 -2
- elasticsearch9/dsl/connections.py +1 -2
- elasticsearch9/dsl/document_base.py +1 -1
- elasticsearch9/dsl/field.py +1 -9
- elasticsearch9/dsl/query.py +24 -5
- elasticsearch9/dsl/serializer.py +1 -2
- elasticsearch9/dsl/types.py +11 -43
- elasticsearch9/dsl/utils.py +1 -2
- elasticsearch9/esql/esql.py +1 -1
- elasticsearch9/esql/functions.py +2 -2
- elasticsearch9/helpers/vectorstore/__init__.py +7 -7
- elasticsearch9/helpers/vectorstore/_async/_utils.py +1 -1
- elasticsearch9/helpers/vectorstore/_async/embedding_service.py +2 -2
- elasticsearch9/helpers/vectorstore/_async/strategies.py +3 -3
- elasticsearch9/helpers/vectorstore/_async/vectorstore.py +5 -5
- elasticsearch9/helpers/vectorstore/_sync/_utils.py +1 -1
- elasticsearch9/helpers/vectorstore/_sync/embedding_service.py +2 -2
- elasticsearch9/helpers/vectorstore/_sync/strategies.py +3 -3
- elasticsearch9/helpers/vectorstore/_sync/vectorstore.py +5 -5
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/METADATA +1 -1
- elasticsearch9-9.1.3.dist-info/RECORD +165 -0
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/WHEEL +1 -1
- elasticsearch9-9.1.2.dist-info/RECORD +0 -165
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch9-9.1.2.dist-info → elasticsearch9-9.1.3.dist-info}/licenses/NOTICE +0 -0
|
@@ -23,9 +23,9 @@ from ._base import NamespacedClient
|
|
|
23
23
|
from .utils import (
|
|
24
24
|
SKIP_IN_PATH,
|
|
25
25
|
Stability,
|
|
26
|
+
_availability_warning,
|
|
26
27
|
_quote,
|
|
27
28
|
_rewrite_parameters,
|
|
28
|
-
_stability_warning,
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
|
|
@@ -3301,10 +3301,20 @@ class CatClient(NamespacedClient):
|
|
|
3301
3301
|
self,
|
|
3302
3302
|
*,
|
|
3303
3303
|
index: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
3304
|
+
allow_closed: t.Optional[bool] = None,
|
|
3305
|
+
allow_no_indices: t.Optional[bool] = None,
|
|
3304
3306
|
bytes: t.Optional[
|
|
3305
3307
|
t.Union[str, t.Literal["b", "gb", "kb", "mb", "pb", "tb"]]
|
|
3306
3308
|
] = None,
|
|
3307
3309
|
error_trace: t.Optional[bool] = None,
|
|
3310
|
+
expand_wildcards: t.Optional[
|
|
3311
|
+
t.Union[
|
|
3312
|
+
t.Sequence[
|
|
3313
|
+
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]]
|
|
3314
|
+
],
|
|
3315
|
+
t.Union[str, t.Literal["all", "closed", "hidden", "none", "open"]],
|
|
3316
|
+
]
|
|
3317
|
+
] = None,
|
|
3308
3318
|
filter_path: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
3309
3319
|
format: t.Optional[str] = None,
|
|
3310
3320
|
h: t.Optional[
|
|
@@ -3355,6 +3365,8 @@ class CatClient(NamespacedClient):
|
|
|
3355
3365
|
] = None,
|
|
3356
3366
|
help: t.Optional[bool] = None,
|
|
3357
3367
|
human: t.Optional[bool] = None,
|
|
3368
|
+
ignore_throttled: t.Optional[bool] = None,
|
|
3369
|
+
ignore_unavailable: t.Optional[bool] = None,
|
|
3358
3370
|
local: t.Optional[bool] = None,
|
|
3359
3371
|
master_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
3360
3372
|
pretty: t.Optional[bool] = None,
|
|
@@ -3378,6 +3390,14 @@ class CatClient(NamespacedClient):
|
|
|
3378
3390
|
:param index: A comma-separated list of data streams, indices, and aliases used
|
|
3379
3391
|
to limit the request. Supports wildcards (`*`). To target all data streams
|
|
3380
3392
|
and indices, omit this parameter or use `*` or `_all`.
|
|
3393
|
+
:param allow_closed: If true, allow closed indices to be returned in the response
|
|
3394
|
+
otherwise if false, keep the legacy behaviour of throwing an exception if
|
|
3395
|
+
index pattern matches closed indices
|
|
3396
|
+
:param allow_no_indices: If false, the request returns an error if any wildcard
|
|
3397
|
+
expression, index alias, or _all value targets only missing or closed indices.
|
|
3398
|
+
This behavior applies even if the request targets other open indices. For
|
|
3399
|
+
example, a request targeting foo*,bar* returns an error if an index starts
|
|
3400
|
+
with foo but no index starts with bar.
|
|
3381
3401
|
:param bytes: Sets the units for columns that contain a byte-size value. Note
|
|
3382
3402
|
that byte-size value units work in terms of powers of 1024. For instance
|
|
3383
3403
|
`1kb` means 1024 bytes, not 1000 bytes. If omitted, byte-size values are
|
|
@@ -3386,12 +3406,20 @@ class CatClient(NamespacedClient):
|
|
|
3386
3406
|
least `1.0`. If given, byte-size values are rendered as an integer with no
|
|
3387
3407
|
suffix, representing the value of the column in the chosen unit. Values that
|
|
3388
3408
|
are not an exact multiple of the chosen unit are rounded down.
|
|
3409
|
+
:param expand_wildcards: Type of index that wildcard expressions can match. If
|
|
3410
|
+
the request can target data streams, this argument determines whether wildcard
|
|
3411
|
+
expressions match hidden data streams. Supports comma-separated values, such
|
|
3412
|
+
as open,hidden.
|
|
3389
3413
|
:param format: Specifies the format to return the columnar data in, can be set
|
|
3390
3414
|
to `text`, `json`, `cbor`, `yaml`, or `smile`.
|
|
3391
3415
|
:param h: A comma-separated list of columns names to display. It supports simple
|
|
3392
3416
|
wildcards.
|
|
3393
3417
|
:param help: When set to `true` will output available columns. This option can't
|
|
3394
3418
|
be combined with any other query string option.
|
|
3419
|
+
:param ignore_throttled: If true, concrete, expanded or aliased indices are ignored
|
|
3420
|
+
when frozen.
|
|
3421
|
+
:param ignore_unavailable: If true, missing or closed indices are not included
|
|
3422
|
+
in the response.
|
|
3395
3423
|
:param local: If `true`, the request computes the list of selected nodes from
|
|
3396
3424
|
the local cluster state. If `false` the list of selected nodes are computed
|
|
3397
3425
|
from the cluster state of the master node. In both cases the coordinating
|
|
@@ -3416,10 +3444,16 @@ class CatClient(NamespacedClient):
|
|
|
3416
3444
|
__path_parts = {}
|
|
3417
3445
|
__path = "/_cat/segments"
|
|
3418
3446
|
__query: t.Dict[str, t.Any] = {}
|
|
3447
|
+
if allow_closed is not None:
|
|
3448
|
+
__query["allow_closed"] = allow_closed
|
|
3449
|
+
if allow_no_indices is not None:
|
|
3450
|
+
__query["allow_no_indices"] = allow_no_indices
|
|
3419
3451
|
if bytes is not None:
|
|
3420
3452
|
__query["bytes"] = bytes
|
|
3421
3453
|
if error_trace is not None:
|
|
3422
3454
|
__query["error_trace"] = error_trace
|
|
3455
|
+
if expand_wildcards is not None:
|
|
3456
|
+
__query["expand_wildcards"] = expand_wildcards
|
|
3423
3457
|
if filter_path is not None:
|
|
3424
3458
|
__query["filter_path"] = filter_path
|
|
3425
3459
|
if format is not None:
|
|
@@ -3430,6 +3464,10 @@ class CatClient(NamespacedClient):
|
|
|
3430
3464
|
__query["help"] = help
|
|
3431
3465
|
if human is not None:
|
|
3432
3466
|
__query["human"] = human
|
|
3467
|
+
if ignore_throttled is not None:
|
|
3468
|
+
__query["ignore_throttled"] = ignore_throttled
|
|
3469
|
+
if ignore_unavailable is not None:
|
|
3470
|
+
__query["ignore_unavailable"] = ignore_unavailable
|
|
3433
3471
|
if local is not None:
|
|
3434
3472
|
__query["local"] = local
|
|
3435
3473
|
if master_timeout is not None:
|
|
@@ -3861,7 +3899,7 @@ class CatClient(NamespacedClient):
|
|
|
3861
3899
|
)
|
|
3862
3900
|
|
|
3863
3901
|
@_rewrite_parameters()
|
|
3864
|
-
@
|
|
3902
|
+
@_availability_warning(Stability.EXPERIMENTAL)
|
|
3865
3903
|
def tasks(
|
|
3866
3904
|
self,
|
|
3867
3905
|
*,
|
|
@@ -125,8 +125,8 @@ class CcrClient(NamespacedClient):
|
|
|
125
125
|
"""
|
|
126
126
|
.. raw:: html
|
|
127
127
|
|
|
128
|
-
<p>Create a follower
|
|
129
|
-
Create a cross-cluster replication follower index that follows a specific leader index.
|
|
128
|
+
<p>Create a follower.</p>
|
|
129
|
+
<p>Create a cross-cluster replication follower index that follows a specific leader index.
|
|
130
130
|
When the API returns, the follower index exists and cross-cluster replication starts replicating operations from the leader index to the follower index.</p>
|
|
131
131
|
|
|
132
132
|
|
|
@@ -368,8 +368,8 @@ class CcrClient(NamespacedClient):
|
|
|
368
368
|
"""
|
|
369
369
|
.. raw:: html
|
|
370
370
|
|
|
371
|
-
<p>Forget a follower
|
|
372
|
-
Remove the cross-cluster replication follower retention leases from the leader.</p>
|
|
371
|
+
<p>Forget a follower.</p>
|
|
372
|
+
<p>Remove the cross-cluster replication follower retention leases from the leader.</p>
|
|
373
373
|
<p>A following index takes out retention leases on its leader index.
|
|
374
374
|
These leases are used to increase the likelihood that the shards of the leader index retain the history of operations that the shards of the following index need to run replication.
|
|
375
375
|
When a follower index is converted to a regular index by the unfollow API (either by directly calling the API or by index lifecycle management tasks), these leases are removed.
|
|
@@ -382,7 +382,7 @@ class CcrClient(NamespacedClient):
|
|
|
382
382
|
|
|
383
383
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-forget-follower>`_
|
|
384
384
|
|
|
385
|
-
:param index:
|
|
385
|
+
:param index: Name of the leader index for which specified follower retention
|
|
386
386
|
leases should be removed
|
|
387
387
|
:param follower_cluster:
|
|
388
388
|
:param follower_index:
|
|
@@ -640,8 +640,8 @@ class CcrClient(NamespacedClient):
|
|
|
640
640
|
"""
|
|
641
641
|
.. raw:: html
|
|
642
642
|
|
|
643
|
-
<p>Create or update auto-follow patterns
|
|
644
|
-
Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
|
|
643
|
+
<p>Create or update auto-follow patterns.</p>
|
|
644
|
+
<p>Create a collection of cross-cluster replication auto-follow patterns for a remote cluster.
|
|
645
645
|
Newly created indices on the remote cluster that match any of the patterns are automatically configured as follower indices.
|
|
646
646
|
Indices on the remote cluster that were created before the auto-follow pattern was created will not be auto-followed even if they match the pattern.</p>
|
|
647
647
|
<p>This API can also be used to update auto-follow patterns.
|
|
@@ -853,8 +853,8 @@ class CcrClient(NamespacedClient):
|
|
|
853
853
|
"""
|
|
854
854
|
.. raw:: html
|
|
855
855
|
|
|
856
|
-
<p>Resume a follower
|
|
857
|
-
Resume a cross-cluster replication follower index that was paused.
|
|
856
|
+
<p>Resume a follower.</p>
|
|
857
|
+
<p>Resume a cross-cluster replication follower index that was paused.
|
|
858
858
|
The follower index could have been paused with the pause follower API.
|
|
859
859
|
Alternatively it could be paused due to replication that cannot be retried due to failures during following tasks.
|
|
860
860
|
When this API returns, the follower index will resume fetching operations from the leader index.</p>
|
|
@@ -862,7 +862,7 @@ class CcrClient(NamespacedClient):
|
|
|
862
862
|
|
|
863
863
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-ccr-resume-follow>`_
|
|
864
864
|
|
|
865
|
-
:param index:
|
|
865
|
+
:param index: Name of the follow index to resume following
|
|
866
866
|
:param master_timeout: Period to wait for a connection to the master node.
|
|
867
867
|
:param max_outstanding_read_requests:
|
|
868
868
|
:param max_outstanding_write_requests:
|
|
@@ -47,8 +47,8 @@ class ClusterClient(NamespacedClient):
|
|
|
47
47
|
"""
|
|
48
48
|
.. raw:: html
|
|
49
49
|
|
|
50
|
-
<p>Explain the shard allocations
|
|
51
|
-
Get explanations for shard allocations in the cluster.
|
|
50
|
+
<p>Explain the shard allocations.</p>
|
|
51
|
+
<p>Get explanations for shard allocations in the cluster.
|
|
52
52
|
For unassigned shards, it provides an explanation for why the shard is unassigned.
|
|
53
53
|
For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
|
|
54
54
|
This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.
|
|
@@ -127,8 +127,8 @@ class ClusterClient(NamespacedClient):
|
|
|
127
127
|
"""
|
|
128
128
|
.. raw:: html
|
|
129
129
|
|
|
130
|
-
<p>Delete component templates
|
|
131
|
-
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
|
|
130
|
+
<p>Delete component templates.</p>
|
|
131
|
+
<p>Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
|
|
@@ -182,8 +182,8 @@ class ClusterClient(NamespacedClient):
|
|
|
182
182
|
"""
|
|
183
183
|
.. raw:: html
|
|
184
184
|
|
|
185
|
-
<p>Clear cluster voting config exclusions
|
|
186
|
-
Remove master-eligible nodes from the voting configuration exclusion list.</p>
|
|
185
|
+
<p>Clear cluster voting config exclusions.</p>
|
|
186
|
+
<p>Remove master-eligible nodes from the voting configuration exclusion list.</p>
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-post-voting-config-exclusions>`_
|
|
@@ -236,8 +236,8 @@ class ClusterClient(NamespacedClient):
|
|
|
236
236
|
"""
|
|
237
237
|
.. raw:: html
|
|
238
238
|
|
|
239
|
-
<p>Check component templates
|
|
240
|
-
Returns information about whether a particular component template exists.</p>
|
|
239
|
+
<p>Check component templates.</p>
|
|
240
|
+
<p>Returns information about whether a particular component template exists.</p>
|
|
241
241
|
|
|
242
242
|
|
|
243
243
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
|
|
@@ -296,8 +296,8 @@ class ClusterClient(NamespacedClient):
|
|
|
296
296
|
"""
|
|
297
297
|
.. raw:: html
|
|
298
298
|
|
|
299
|
-
<p>Get component templates
|
|
300
|
-
Get information about component templates.</p>
|
|
299
|
+
<p>Get component templates.</p>
|
|
300
|
+
<p>Get information about component templates.</p>
|
|
301
301
|
|
|
302
302
|
|
|
303
303
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-component-template>`_
|
|
@@ -306,7 +306,7 @@ class ClusterClient(NamespacedClient):
|
|
|
306
306
|
request. Wildcard (`*`) expressions are supported.
|
|
307
307
|
:param flat_settings: If `true`, returns settings in flat format.
|
|
308
308
|
:param include_defaults: Return all default configurations for the component
|
|
309
|
-
template
|
|
309
|
+
template
|
|
310
310
|
:param local: If `true`, the request retrieves information from the local node
|
|
311
311
|
only. If `false`, information is retrieved from the master node.
|
|
312
312
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
@@ -572,8 +572,8 @@ class ClusterClient(NamespacedClient):
|
|
|
572
572
|
"""
|
|
573
573
|
.. raw:: html
|
|
574
574
|
|
|
575
|
-
<p>Get cluster info
|
|
576
|
-
Returns basic information about the cluster.</p>
|
|
575
|
+
<p>Get cluster info.</p>
|
|
576
|
+
<p>Returns basic information about the cluster.</p>
|
|
577
577
|
|
|
578
578
|
|
|
579
579
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-info>`_
|
|
@@ -618,8 +618,8 @@ class ClusterClient(NamespacedClient):
|
|
|
618
618
|
"""
|
|
619
619
|
.. raw:: html
|
|
620
620
|
|
|
621
|
-
<p>Get the pending cluster tasks
|
|
622
|
-
Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.</p>
|
|
621
|
+
<p>Get the pending cluster tasks.</p>
|
|
622
|
+
<p>Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.</p>
|
|
623
623
|
<p>NOTE: This API returns a list of any pending updates to the cluster state.
|
|
624
624
|
These are distinct from the tasks reported by the task management API which include periodic tasks and tasks initiated by the user, such as node stats, search queries, or create index requests.
|
|
625
625
|
However, if a user-initiated task such as a create index command causes a cluster state update, the activity of this task might be reported by both task api and pending cluster tasks API.</p>
|
|
@@ -674,8 +674,8 @@ class ClusterClient(NamespacedClient):
|
|
|
674
674
|
"""
|
|
675
675
|
.. raw:: html
|
|
676
676
|
|
|
677
|
-
<p>Update voting configuration exclusions
|
|
678
|
-
Update the cluster voting config exclusions by node IDs or node names.
|
|
677
|
+
<p>Update voting configuration exclusions.</p>
|
|
678
|
+
<p>Update the cluster voting config exclusions by node IDs or node names.
|
|
679
679
|
By default, if there are more than three master-eligible nodes in the cluster and you remove fewer than half of the master-eligible nodes in the cluster at once, the voting configuration automatically shrinks.
|
|
680
680
|
If you want to shrink the voting configuration to contain fewer than three nodes or to remove half or more of the master-eligible nodes in the cluster at once, use this API to remove departing nodes from the voting configuration manually.
|
|
681
681
|
The API adds an entry for each specified node to the cluster’s voting configuration exclusions list.
|
|
@@ -757,8 +757,8 @@ class ClusterClient(NamespacedClient):
|
|
|
757
757
|
"""
|
|
758
758
|
.. raw:: html
|
|
759
759
|
|
|
760
|
-
<p>Create or update a component template
|
|
761
|
-
Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
|
|
760
|
+
<p>Create or update a component template.</p>
|
|
761
|
+
<p>Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
|
|
762
762
|
<p>An index template can be composed of multiple component templates.
|
|
763
763
|
To use a component template, specify it in an index template’s <code>composed_of</code> list.
|
|
764
764
|
Component templates are only applied to new data streams and indices as part of a matching index template.</p>
|
|
@@ -883,10 +883,10 @@ class ClusterClient(NamespacedClient):
|
|
|
883
883
|
|
|
884
884
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-put-settings>`_
|
|
885
885
|
|
|
886
|
-
:param flat_settings: Return settings in flat format
|
|
887
|
-
:param master_timeout:
|
|
886
|
+
:param flat_settings: Return settings in flat format
|
|
887
|
+
:param master_timeout: The period to wait for a connection to the master node.
|
|
888
888
|
:param persistent: The settings that persist after the cluster restarts.
|
|
889
|
-
:param timeout:
|
|
889
|
+
:param timeout: The period to wait for a response.
|
|
890
890
|
:param transient: The settings that do not persist after the cluster restarts.
|
|
891
891
|
"""
|
|
892
892
|
__path_parts: t.Dict[str, str] = {}
|
|
@@ -992,8 +992,8 @@ class ClusterClient(NamespacedClient):
|
|
|
992
992
|
"""
|
|
993
993
|
.. raw:: html
|
|
994
994
|
|
|
995
|
-
<p>Reroute the cluster
|
|
996
|
-
Manually change the allocation of individual shards in the cluster.
|
|
995
|
+
<p>Reroute the cluster.</p>
|
|
996
|
+
<p>Manually change the allocation of individual shards in the cluster.
|
|
997
997
|
For example, a shard can be moved from one node to another explicitly, an allocation can be canceled, and an unassigned shard can be explicitly allocated to a specific node.</p>
|
|
998
998
|
<p>It is important to note that after processing any reroute commands Elasticsearch will perform rebalancing as normal (respecting the values of settings such as <code>cluster.routing.rebalance.enable</code>) in order to remain in a balanced state.
|
|
999
999
|
For example, if the requested allocation includes moving a shard from node1 to node2 then this may cause a shard to be moved from node2 back to node1 to even things out.</p>
|
|
@@ -1093,8 +1093,8 @@ class ClusterClient(NamespacedClient):
|
|
|
1093
1093
|
"""
|
|
1094
1094
|
.. raw:: html
|
|
1095
1095
|
|
|
1096
|
-
<p>Get the cluster state
|
|
1097
|
-
Get comprehensive information about the state of the cluster.</p>
|
|
1096
|
+
<p>Get the cluster state.</p>
|
|
1097
|
+
<p>Get comprehensive information about the state of the cluster.</p>
|
|
1098
1098
|
<p>The cluster state is an internal data structure which keeps track of a variety of information needed by every node, including the identity and attributes of the other nodes in the cluster; cluster-wide settings; index metadata, including the mapping and settings for each index; the location and status of every shard copy in the cluster.</p>
|
|
1099
1099
|
<p>The elected master node ensures that every node in the cluster has a copy of the same cluster state.
|
|
1100
1100
|
This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.
|
|
@@ -1111,20 +1111,21 @@ class ClusterClient(NamespacedClient):
|
|
|
1111
1111
|
|
|
1112
1112
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-state>`_
|
|
1113
1113
|
|
|
1114
|
-
:param metric: Limit the information returned to the specified metrics
|
|
1114
|
+
:param metric: Limit the information returned to the specified metrics.
|
|
1115
1115
|
:param index: A comma-separated list of index names; use `_all` or empty string
|
|
1116
1116
|
to perform the operation on all indices
|
|
1117
1117
|
:param allow_no_indices: Whether to ignore if a wildcard indices expression resolves
|
|
1118
1118
|
into no concrete indices. (This includes `_all` string or when no indices
|
|
1119
1119
|
have been specified)
|
|
1120
1120
|
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
|
|
1121
|
-
that are open, closed or both
|
|
1122
|
-
:param flat_settings: Return settings in flat format
|
|
1121
|
+
that are open, closed or both
|
|
1122
|
+
:param flat_settings: Return settings in flat format
|
|
1123
1123
|
:param ignore_unavailable: Whether specified concrete indices should be ignored
|
|
1124
1124
|
when unavailable (missing or closed)
|
|
1125
1125
|
:param local: Return local information, do not retrieve the state from master
|
|
1126
|
-
node
|
|
1127
|
-
:param master_timeout:
|
|
1126
|
+
node
|
|
1127
|
+
:param master_timeout: Timeout for waiting for new cluster state in case it is
|
|
1128
|
+
blocked
|
|
1128
1129
|
:param wait_for_metadata_version: Wait for the metadata version to be equal or
|
|
1129
1130
|
greater than the specified metadata version
|
|
1130
1131
|
:param wait_for_timeout: The maximum time to wait for wait_for_metadata_version
|
|
@@ -1193,8 +1194,8 @@ class ClusterClient(NamespacedClient):
|
|
|
1193
1194
|
"""
|
|
1194
1195
|
.. raw:: html
|
|
1195
1196
|
|
|
1196
|
-
<p>Get cluster statistics
|
|
1197
|
-
Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).</p>
|
|
1197
|
+
<p>Get cluster statistics.</p>
|
|
1198
|
+
<p>Get basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).</p>
|
|
1198
1199
|
|
|
1199
1200
|
|
|
1200
1201
|
`<https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-cluster-stats>`_
|