elasticsearch 8.16.0__py3-none-any.whl → 8.17.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 +82 -46
- elasticsearch/_async/client/async_search.py +12 -22
- elasticsearch/_async/client/autoscaling.py +39 -4
- elasticsearch/_async/client/cat.py +26 -26
- elasticsearch/_async/client/ccr.py +85 -35
- elasticsearch/_async/client/cluster.py +141 -49
- elasticsearch/_async/client/connector.py +25 -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 +69 -34
- elasticsearch/_async/client/indices.py +307 -105
- elasticsearch/_async/client/inference.py +5 -15
- elasticsearch/_async/client/ingest.py +28 -23
- elasticsearch/_async/client/license.py +38 -22
- elasticsearch/_async/client/logstash.py +3 -3
- elasticsearch/_async/client/migration.py +3 -3
- elasticsearch/_async/client/ml.py +125 -73
- elasticsearch/_async/client/monitoring.py +1 -1
- elasticsearch/_async/client/nodes.py +34 -20
- elasticsearch/_async/client/query_rules.py +17 -16
- elasticsearch/_async/client/rollup.py +8 -8
- elasticsearch/_async/client/search_application.py +8 -8
- elasticsearch/_async/client/searchable_snapshots.py +4 -4
- elasticsearch/_async/client/security.py +64 -57
- elasticsearch/_async/client/slm.py +9 -9
- elasticsearch/_async/client/snapshot.py +12 -12
- elasticsearch/_async/client/sql.py +16 -15
- elasticsearch/_async/client/ssl.py +1 -1
- elasticsearch/_async/client/synonyms.py +17 -14
- elasticsearch/_async/client/tasks.py +3 -3
- elasticsearch/_async/client/text_structure.py +2 -2
- elasticsearch/_async/client/transform.py +11 -11
- elasticsearch/_async/client/watcher.py +11 -11
- elasticsearch/_async/client/xpack.py +2 -2
- elasticsearch/_sync/client/__init__.py +82 -46
- elasticsearch/_sync/client/async_search.py +12 -22
- elasticsearch/_sync/client/autoscaling.py +39 -4
- elasticsearch/_sync/client/cat.py +26 -26
- elasticsearch/_sync/client/ccr.py +85 -35
- elasticsearch/_sync/client/cluster.py +141 -49
- elasticsearch/_sync/client/connector.py +25 -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 +69 -34
- elasticsearch/_sync/client/indices.py +307 -105
- elasticsearch/_sync/client/inference.py +5 -15
- elasticsearch/_sync/client/ingest.py +28 -23
- elasticsearch/_sync/client/license.py +38 -22
- elasticsearch/_sync/client/logstash.py +3 -3
- elasticsearch/_sync/client/migration.py +3 -3
- elasticsearch/_sync/client/ml.py +125 -73
- elasticsearch/_sync/client/monitoring.py +1 -1
- elasticsearch/_sync/client/nodes.py +34 -20
- elasticsearch/_sync/client/query_rules.py +17 -16
- elasticsearch/_sync/client/rollup.py +8 -8
- elasticsearch/_sync/client/search_application.py +8 -8
- elasticsearch/_sync/client/searchable_snapshots.py +4 -4
- elasticsearch/_sync/client/security.py +64 -57
- elasticsearch/_sync/client/slm.py +9 -9
- elasticsearch/_sync/client/snapshot.py +12 -12
- elasticsearch/_sync/client/sql.py +16 -15
- elasticsearch/_sync/client/ssl.py +1 -1
- elasticsearch/_sync/client/synonyms.py +17 -14
- elasticsearch/_sync/client/tasks.py +3 -3
- elasticsearch/_sync/client/text_structure.py +2 -2
- elasticsearch/_sync/client/transform.py +11 -11
- elasticsearch/_sync/client/watcher.py +11 -11
- elasticsearch/_sync/client/xpack.py +2 -2
- elasticsearch/_version.py +1 -1
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/METADATA +6 -4
- elasticsearch-8.17.0.dist-info/RECORD +117 -0
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/WHEEL +1 -1
- elasticsearch-8.16.0.dist-info/RECORD +0 -117
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.16.0.dist-info → elasticsearch-8.17.0.dist-info}/licenses/NOTICE +0 -0
|
@@ -44,9 +44,15 @@ class ClusterClient(NamespacedClient):
|
|
|
44
44
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
45
45
|
) -> ObjectApiResponse[t.Any]:
|
|
46
46
|
"""
|
|
47
|
-
|
|
47
|
+
Explain the shard allocations. Get explanations for shard allocations in the
|
|
48
|
+
cluster. For unassigned shards, it provides an explanation for why the shard
|
|
49
|
+
is unassigned. For assigned shards, it provides an explanation for why the shard
|
|
50
|
+
is remaining on its current node and has not moved or rebalanced to another node.
|
|
51
|
+
This API can be very useful when attempting to diagnose why a shard is unassigned
|
|
52
|
+
or why a shard continues to remain on its current node when you might expect
|
|
53
|
+
otherwise.
|
|
48
54
|
|
|
49
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
55
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-allocation-explain.html>`_
|
|
50
56
|
|
|
51
57
|
:param current_node: Specifies the node ID or the name of the node to only explain
|
|
52
58
|
a shard that is currently located on the specified node.
|
|
@@ -117,7 +123,7 @@ class ClusterClient(NamespacedClient):
|
|
|
117
123
|
are building blocks for constructing index templates that specify index mappings,
|
|
118
124
|
settings, and aliases.
|
|
119
125
|
|
|
120
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
126
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
|
|
121
127
|
|
|
122
128
|
:param name: Comma-separated list or wildcard expression of component template
|
|
123
129
|
names used to limit the request.
|
|
@@ -165,9 +171,10 @@ class ClusterClient(NamespacedClient):
|
|
|
165
171
|
wait_for_removal: t.Optional[bool] = None,
|
|
166
172
|
) -> ObjectApiResponse[t.Any]:
|
|
167
173
|
"""
|
|
168
|
-
|
|
174
|
+
Clear cluster voting config exclusions. Remove master-eligible nodes from the
|
|
175
|
+
voting configuration exclusion list.
|
|
169
176
|
|
|
170
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
177
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
|
|
171
178
|
|
|
172
179
|
:param wait_for_removal: Specifies whether to wait for all excluded nodes to
|
|
173
180
|
be removed from the cluster before clearing the voting configuration exclusions
|
|
@@ -215,7 +222,7 @@ class ClusterClient(NamespacedClient):
|
|
|
215
222
|
Check component templates. Returns information about whether a particular component
|
|
216
223
|
template exists.
|
|
217
224
|
|
|
218
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
225
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
|
|
219
226
|
|
|
220
227
|
:param name: Comma-separated list of component template names used to limit the
|
|
221
228
|
request. Wildcard (*) expressions are supported.
|
|
@@ -270,7 +277,7 @@ class ClusterClient(NamespacedClient):
|
|
|
270
277
|
"""
|
|
271
278
|
Get component templates. Retrieves information about component templates.
|
|
272
279
|
|
|
273
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
280
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
|
|
274
281
|
|
|
275
282
|
:param name: Comma-separated list of component template names used to limit the
|
|
276
283
|
request. Wildcard (`*`) expressions are supported.
|
|
@@ -331,10 +338,10 @@ class ClusterClient(NamespacedClient):
|
|
|
331
338
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
332
339
|
) -> ObjectApiResponse[t.Any]:
|
|
333
340
|
"""
|
|
334
|
-
|
|
335
|
-
|
|
341
|
+
Get cluster-wide settings. By default, it returns only settings that have been
|
|
342
|
+
explicitly defined.
|
|
336
343
|
|
|
337
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
344
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-get-settings.html>`_
|
|
338
345
|
|
|
339
346
|
:param flat_settings: If `true`, returns settings in flat format.
|
|
340
347
|
:param include_defaults: If `true`, returns default cluster settings from the
|
|
@@ -414,17 +421,18 @@ class ClusterClient(NamespacedClient):
|
|
|
414
421
|
] = None,
|
|
415
422
|
) -> ObjectApiResponse[t.Any]:
|
|
416
423
|
"""
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
424
|
+
Get the cluster health status. You can also use the API to get the health status
|
|
425
|
+
of only specified data streams and indices. For data streams, the API retrieves
|
|
426
|
+
the health status of the stream’s backing indices. The cluster health status
|
|
427
|
+
is: green, yellow or red. On the shard level, a red status indicates that the
|
|
428
|
+
specific shard is not allocated in the cluster. Yellow means that the primary
|
|
429
|
+
shard is allocated but replicas are not. Green means that all shards are allocated.
|
|
430
|
+
The index level status is controlled by the worst shard status. One of the main
|
|
431
|
+
benefits of the API is the ability to wait until the cluster reaches a certain
|
|
432
|
+
high watermark health level. The cluster status is controlled by the worst index
|
|
425
433
|
status.
|
|
426
434
|
|
|
427
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
435
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-health.html>`_
|
|
428
436
|
|
|
429
437
|
:param index: Comma-separated list of data streams, indices, and index aliases
|
|
430
438
|
used to limit the request. Wildcard expressions (`*`) are supported. To target
|
|
@@ -528,7 +536,7 @@ class ClusterClient(NamespacedClient):
|
|
|
528
536
|
"""
|
|
529
537
|
Get cluster info. Returns basic information about the cluster.
|
|
530
538
|
|
|
531
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
539
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-info.html>`_
|
|
532
540
|
|
|
533
541
|
:param target: Limits the information returned to the specific target. Supports
|
|
534
542
|
a comma-separated list, such as http,ingest.
|
|
@@ -568,16 +576,16 @@ class ClusterClient(NamespacedClient):
|
|
|
568
576
|
pretty: t.Optional[bool] = None,
|
|
569
577
|
) -> ObjectApiResponse[t.Any]:
|
|
570
578
|
"""
|
|
571
|
-
|
|
572
|
-
or fail shard) that have not yet
|
|
573
|
-
of any pending updates to the cluster state.
|
|
574
|
-
reported by the
|
|
575
|
-
by the user, such as node stats, search queries,
|
|
576
|
-
if a user-initiated task such as a create
|
|
577
|
-
update, the activity of this task might
|
|
578
|
-
cluster tasks API.
|
|
579
|
+
Get the pending cluster tasks. Get information about cluster-level changes (such
|
|
580
|
+
as create index, update mapping, allocate or fail shard) that have not yet taken
|
|
581
|
+
effect. NOTE: This API returns a list of any pending updates to the cluster state.
|
|
582
|
+
These are distinct from the tasks reported by the task management API which include
|
|
583
|
+
periodic tasks and tasks initiated by the user, such as node stats, search queries,
|
|
584
|
+
or create index requests. However, if a user-initiated task such as a create
|
|
585
|
+
index command causes a cluster state update, the activity of this task might
|
|
586
|
+
be reported by both task api and pending cluster tasks API.
|
|
579
587
|
|
|
580
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
588
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-pending.html>`_
|
|
581
589
|
|
|
582
590
|
:param local: If `true`, the request retrieves information from the local node
|
|
583
591
|
only. If `false`, information is retrieved from the master node.
|
|
@@ -623,9 +631,35 @@ class ClusterClient(NamespacedClient):
|
|
|
623
631
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
624
632
|
) -> ObjectApiResponse[t.Any]:
|
|
625
633
|
"""
|
|
626
|
-
|
|
634
|
+
Update voting configuration exclusions. Update the cluster voting config exclusions
|
|
635
|
+
by node IDs or node names. By default, if there are more than three master-eligible
|
|
636
|
+
nodes in the cluster and you remove fewer than half of the master-eligible nodes
|
|
637
|
+
in the cluster at once, the voting configuration automatically shrinks. If you
|
|
638
|
+
want to shrink the voting configuration to contain fewer than three nodes or
|
|
639
|
+
to remove half or more of the master-eligible nodes in the cluster at once, use
|
|
640
|
+
this API to remove departing nodes from the voting configuration manually. The
|
|
641
|
+
API adds an entry for each specified node to the cluster’s voting configuration
|
|
642
|
+
exclusions list. It then waits until the cluster has reconfigured its voting
|
|
643
|
+
configuration to exclude the specified nodes. Clusters should have no voting
|
|
644
|
+
configuration exclusions in normal operation. Once the excluded nodes have stopped,
|
|
645
|
+
clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`.
|
|
646
|
+
This API waits for the nodes to be fully removed from the cluster before it returns.
|
|
647
|
+
If your cluster has voting configuration exclusions for nodes that you no longer
|
|
648
|
+
intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false`
|
|
649
|
+
to clear the voting configuration exclusions without waiting for the nodes to
|
|
650
|
+
leave the cluster. A response to `POST /_cluster/voting_config_exclusions` with
|
|
651
|
+
an HTTP status code of 200 OK guarantees that the node has been removed from
|
|
652
|
+
the voting configuration and will not be reinstated until the voting configuration
|
|
653
|
+
exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`.
|
|
654
|
+
If the call to `POST /_cluster/voting_config_exclusions` fails or returns a response
|
|
655
|
+
with an HTTP status code other than 200 OK then the node may not have been removed
|
|
656
|
+
from the voting configuration. In that case, you may safely retry the call. NOTE:
|
|
657
|
+
Voting exclusions are required only when you remove at least half of the master-eligible
|
|
658
|
+
nodes from a cluster in a short time period. They are not required when removing
|
|
659
|
+
master-ineligible nodes or when removing fewer than half of the master-eligible
|
|
660
|
+
nodes.
|
|
627
661
|
|
|
628
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
662
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
|
|
629
663
|
|
|
630
664
|
:param node_ids: A comma-separated list of the persistent ids of the nodes to
|
|
631
665
|
exclude from the voting configuration. If specified, you may not also specify
|
|
@@ -700,7 +734,7 @@ class ClusterClient(NamespacedClient):
|
|
|
700
734
|
You can include comments anywhere in the request body except before the opening
|
|
701
735
|
curly bracket.
|
|
702
736
|
|
|
703
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
737
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
|
|
704
738
|
|
|
705
739
|
:param name: Name of the component template to create. Elasticsearch includes
|
|
706
740
|
the following built-in component templates: `logs-mappings`; `logs-settings`;
|
|
@@ -787,9 +821,28 @@ class ClusterClient(NamespacedClient):
|
|
|
787
821
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
788
822
|
) -> ObjectApiResponse[t.Any]:
|
|
789
823
|
"""
|
|
790
|
-
|
|
824
|
+
Update the cluster settings. Configure and update dynamic settings on a running
|
|
825
|
+
cluster. You can also configure dynamic settings locally on an unstarted or shut
|
|
826
|
+
down node in `elasticsearch.yml`. Updates made with this API can be persistent,
|
|
827
|
+
which apply across cluster restarts, or transient, which reset after a cluster
|
|
828
|
+
restart. You can also reset transient or persistent settings by assigning them
|
|
829
|
+
a null value. If you configure the same setting using multiple methods, Elasticsearch
|
|
830
|
+
applies the settings in following order of precedence: 1) Transient setting;
|
|
831
|
+
2) Persistent setting; 3) `elasticsearch.yml` setting; 4) Default setting value.
|
|
832
|
+
For example, you can apply a transient setting to override a persistent setting
|
|
833
|
+
or `elasticsearch.yml` setting. However, a change to an `elasticsearch.yml` setting
|
|
834
|
+
will not override a defined transient or persistent setting. TIP: In Elastic
|
|
835
|
+
Cloud, use the user settings feature to configure all cluster settings. This
|
|
836
|
+
method automatically rejects unsafe settings that could break your cluster. If
|
|
837
|
+
you run Elasticsearch on your own hardware, use this API to configure dynamic
|
|
838
|
+
cluster settings. Only use `elasticsearch.yml` for static cluster settings and
|
|
839
|
+
node settings. The API doesn’t require a restart and ensures a setting’s value
|
|
840
|
+
is the same on all nodes. WARNING: Transient cluster settings are no longer recommended.
|
|
841
|
+
Use persistent cluster settings instead. If a cluster becomes unstable, transient
|
|
842
|
+
settings can clear unexpectedly, resulting in a potentially undesired cluster
|
|
843
|
+
configuration.
|
|
791
844
|
|
|
792
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
845
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-update-settings.html>`_
|
|
793
846
|
|
|
794
847
|
:param flat_settings: Return settings in flat format (default: false)
|
|
795
848
|
:param master_timeout: Explicit operation timeout for connection to master node
|
|
@@ -841,11 +894,11 @@ class ClusterClient(NamespacedClient):
|
|
|
841
894
|
pretty: t.Optional[bool] = None,
|
|
842
895
|
) -> ObjectApiResponse[t.Any]:
|
|
843
896
|
"""
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
897
|
+
Get remote cluster information. Get all of the configured remote cluster information.
|
|
898
|
+
This API returns connection and endpoint information keyed by the configured
|
|
899
|
+
remote cluster alias.
|
|
847
900
|
|
|
848
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
901
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-remote-info.html>`_
|
|
849
902
|
"""
|
|
850
903
|
__path_parts: t.Dict[str, str] = {}
|
|
851
904
|
__path = "/_remote/info"
|
|
@@ -888,15 +941,35 @@ class ClusterClient(NamespacedClient):
|
|
|
888
941
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
889
942
|
) -> ObjectApiResponse[t.Any]:
|
|
890
943
|
"""
|
|
891
|
-
|
|
944
|
+
Reroute the cluster. Manually change the allocation of individual shards in the
|
|
945
|
+
cluster. For example, a shard can be moved from one node to another explicitly,
|
|
946
|
+
an allocation can be canceled, and an unassigned shard can be explicitly allocated
|
|
947
|
+
to a specific node. It is important to note that after processing any reroute
|
|
948
|
+
commands Elasticsearch will perform rebalancing as normal (respecting the values
|
|
949
|
+
of settings such as `cluster.routing.rebalance.enable`) in order to remain in
|
|
950
|
+
a balanced state. For example, if the requested allocation includes moving a
|
|
951
|
+
shard from node1 to node2 then this may cause a shard to be moved from node2
|
|
952
|
+
back to node1 to even things out. The cluster can be set to disable allocations
|
|
953
|
+
using the `cluster.routing.allocation.enable` setting. If allocations are disabled
|
|
954
|
+
then the only allocations that will be performed are explicit ones given using
|
|
955
|
+
the reroute command, and consequent allocations due to rebalancing. The cluster
|
|
956
|
+
will attempt to allocate a shard a maximum of `index.allocation.max_retries`
|
|
957
|
+
times in a row (defaults to `5`), before giving up and leaving the shard unallocated.
|
|
958
|
+
This scenario can be caused by structural problems such as having an analyzer
|
|
959
|
+
which refers to a stopwords file which doesn’t exist on all nodes. Once the problem
|
|
960
|
+
has been corrected, allocation can be manually retried by calling the reroute
|
|
961
|
+
API with the `?retry_failed` URI query parameter, which will attempt a single
|
|
962
|
+
retry round for these shards.
|
|
892
963
|
|
|
893
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
964
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-reroute.html>`_
|
|
894
965
|
|
|
895
966
|
:param commands: Defines the commands to perform.
|
|
896
|
-
:param dry_run: If true, then the request simulates the operation
|
|
897
|
-
the
|
|
967
|
+
:param dry_run: If true, then the request simulates the operation. It will calculate
|
|
968
|
+
the result of applying the commands to the current cluster state and return
|
|
969
|
+
the resulting cluster state after the commands (and rebalancing) have been
|
|
970
|
+
applied; it will not actually perform the requested changes.
|
|
898
971
|
:param explain: If true, then the response contains an explanation of why the
|
|
899
|
-
commands can or cannot
|
|
972
|
+
commands can or cannot run.
|
|
900
973
|
:param master_timeout: Period to wait for a connection to the master node. If
|
|
901
974
|
no response is received before the timeout expires, the request fails and
|
|
902
975
|
returns an error.
|
|
@@ -975,9 +1048,28 @@ class ClusterClient(NamespacedClient):
|
|
|
975
1048
|
wait_for_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
976
1049
|
) -> ObjectApiResponse[t.Any]:
|
|
977
1050
|
"""
|
|
978
|
-
|
|
1051
|
+
Get the cluster state. Get comprehensive information about the state of the cluster.
|
|
1052
|
+
The cluster state is an internal data structure which keeps track of a variety
|
|
1053
|
+
of information needed by every node, including the identity and attributes of
|
|
1054
|
+
the other nodes in the cluster; cluster-wide settings; index metadata, including
|
|
1055
|
+
the mapping and settings for each index; the location and status of every shard
|
|
1056
|
+
copy in the cluster. The elected master node ensures that every node in the cluster
|
|
1057
|
+
has a copy of the same cluster state. This API lets you retrieve a representation
|
|
1058
|
+
of this internal state for debugging or diagnostic purposes. You may need to
|
|
1059
|
+
consult the Elasticsearch source code to determine the precise meaning of the
|
|
1060
|
+
response. By default the API will route requests to the elected master node since
|
|
1061
|
+
this node is the authoritative source of cluster states. You can also retrieve
|
|
1062
|
+
the cluster state held on the node handling the API request by adding the `?local=true`
|
|
1063
|
+
query parameter. Elasticsearch may need to expend significant effort to compute
|
|
1064
|
+
a response to this API in larger clusters, and the response may comprise a very
|
|
1065
|
+
large quantity of data. If you use this API repeatedly, your cluster may become
|
|
1066
|
+
unstable. WARNING: The response is a representation of an internal data structure.
|
|
1067
|
+
Its format is not subject to the same compatibility guarantees as other more
|
|
1068
|
+
stable APIs and may change from version to version. Do not query this API using
|
|
1069
|
+
external monitoring tools. Instead, obtain the information you require using
|
|
1070
|
+
other more stable cluster APIs.
|
|
979
1071
|
|
|
980
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1072
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-state.html>`_
|
|
981
1073
|
|
|
982
1074
|
:param metric: Limit the information returned to the specified metrics
|
|
983
1075
|
:param index: A comma-separated list of index names; use `_all` or empty string
|
|
@@ -1059,11 +1151,11 @@ class ClusterClient(NamespacedClient):
|
|
|
1059
1151
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
1060
1152
|
) -> ObjectApiResponse[t.Any]:
|
|
1061
1153
|
"""
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1154
|
+
Get cluster statistics. Get basic index metrics (shard numbers, store size, memory
|
|
1155
|
+
usage) and information about the current nodes that form the cluster (number,
|
|
1156
|
+
roles, os, jvm versions, memory usage, cpu and installed plugins).
|
|
1065
1157
|
|
|
1066
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1158
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-stats.html>`_
|
|
1067
1159
|
|
|
1068
1160
|
:param node_id: Comma-separated list of node filters used to limit returned information.
|
|
1069
1161
|
Defaults to all nodes in the cluster.
|
|
@@ -46,7 +46,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
46
46
|
Check in a connector. Update the `last_seen` field in the connector and set it
|
|
47
47
|
to the current timestamp.
|
|
48
48
|
|
|
49
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
49
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/check-in-connector-api.html>`_
|
|
50
50
|
|
|
51
51
|
:param connector_id: The unique identifier of the connector to be checked in
|
|
52
52
|
"""
|
|
@@ -91,7 +91,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
91
91
|
ingest pipelines, or data indices associated with the connector. These need to
|
|
92
92
|
be removed manually.
|
|
93
93
|
|
|
94
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
94
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-connector-api.html>`_
|
|
95
95
|
|
|
96
96
|
:param connector_id: The unique identifier of the connector to be deleted
|
|
97
97
|
:param delete_sync_jobs: A flag indicating if associated sync jobs should be
|
|
@@ -136,7 +136,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
136
136
|
"""
|
|
137
137
|
Get a connector. Get the details about a connector.
|
|
138
138
|
|
|
139
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
139
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-connector-api.html>`_
|
|
140
140
|
|
|
141
141
|
:param connector_id: The unique identifier of the connector
|
|
142
142
|
"""
|
|
@@ -232,7 +232,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
232
232
|
Update the connector last sync stats. Update the fields related to the last sync
|
|
233
233
|
of a connector. This action is used for analytics and monitoring.
|
|
234
234
|
|
|
235
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
235
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-last-sync-api.html>`_
|
|
236
236
|
|
|
237
237
|
:param connector_id: The unique identifier of the connector to be updated
|
|
238
238
|
:param last_access_control_sync_error:
|
|
@@ -327,7 +327,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
327
327
|
"""
|
|
328
328
|
Get all connectors. Get information about all connectors.
|
|
329
329
|
|
|
330
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
330
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/list-connector-api.html>`_
|
|
331
331
|
|
|
332
332
|
:param connector_name: A comma-separated list of connector names to fetch connector
|
|
333
333
|
documents for
|
|
@@ -406,7 +406,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
406
406
|
a managed service on Elastic Cloud. Self-managed connectors (Connector clients)
|
|
407
407
|
are self-managed on your infrastructure.
|
|
408
408
|
|
|
409
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
409
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/create-connector-api.html>`_
|
|
410
410
|
|
|
411
411
|
:param description:
|
|
412
412
|
:param index_name:
|
|
@@ -485,7 +485,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
485
485
|
"""
|
|
486
486
|
Create or update a connector.
|
|
487
487
|
|
|
488
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
488
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/create-connector-api.html>`_
|
|
489
489
|
|
|
490
490
|
:param connector_id: The unique identifier of the connector to be created or
|
|
491
491
|
updated. ID is auto-generated if not provided.
|
|
@@ -558,7 +558,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
558
558
|
connector service is then responsible for setting the status of connector sync
|
|
559
559
|
jobs to cancelled.
|
|
560
560
|
|
|
561
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
561
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cancel-connector-sync-job-api.html>`_
|
|
562
562
|
|
|
563
563
|
:param connector_sync_job_id: The unique identifier of the connector sync job
|
|
564
564
|
"""
|
|
@@ -604,7 +604,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
604
604
|
Delete a connector sync job. Remove a connector sync job and its associated data.
|
|
605
605
|
This is a destructive action that is not recoverable.
|
|
606
606
|
|
|
607
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
607
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-connector-sync-job-api.html>`_
|
|
608
608
|
|
|
609
609
|
:param connector_sync_job_id: The unique identifier of the connector sync job
|
|
610
610
|
to be deleted
|
|
@@ -648,7 +648,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
648
648
|
"""
|
|
649
649
|
Get a connector sync job.
|
|
650
650
|
|
|
651
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
651
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-connector-sync-job-api.html>`_
|
|
652
652
|
|
|
653
653
|
:param connector_sync_job_id: The unique identifier of the connector sync job
|
|
654
654
|
"""
|
|
@@ -718,7 +718,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
718
718
|
Get all connector sync jobs. Get information about all stored connector sync
|
|
719
719
|
jobs listed by their creation date in ascending order.
|
|
720
720
|
|
|
721
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
721
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/list-connector-sync-jobs-api.html>`_
|
|
722
722
|
|
|
723
723
|
:param connector_id: A connector id to fetch connector sync jobs for
|
|
724
724
|
:param from_: Starting offset (default: 0)
|
|
@@ -781,7 +781,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
781
781
|
Create a connector sync job. Create a connector sync job document in the internal
|
|
782
782
|
index and initialize its counters and timestamps with default values.
|
|
783
783
|
|
|
784
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
784
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/create-connector-sync-job-api.html>`_
|
|
785
785
|
|
|
786
786
|
:param id: The id of the associated connector
|
|
787
787
|
:param job_type:
|
|
@@ -834,7 +834,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
834
834
|
Activate the connector draft filter. Activates the valid draft filtering for
|
|
835
835
|
a connector.
|
|
836
836
|
|
|
837
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
837
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-filtering-api.html>`_
|
|
838
838
|
|
|
839
839
|
:param connector_id: The unique identifier of the connector to be updated
|
|
840
840
|
"""
|
|
@@ -884,7 +884,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
884
884
|
secret ID is required only for Elastic managed (native) connectors. Self-managed
|
|
885
885
|
connectors (connector clients) do not use this field.
|
|
886
886
|
|
|
887
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
887
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-api-key-id-api.html>`_
|
|
888
888
|
|
|
889
889
|
:param connector_id: The unique identifier of the connector to be updated
|
|
890
890
|
:param api_key_id:
|
|
@@ -940,7 +940,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
940
940
|
Update the connector configuration. Update the configuration field in the connector
|
|
941
941
|
document.
|
|
942
942
|
|
|
943
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
943
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-configuration-api.html>`_
|
|
944
944
|
|
|
945
945
|
:param connector_id: The unique identifier of the connector to be updated
|
|
946
946
|
:param configuration:
|
|
@@ -997,7 +997,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
997
997
|
to error. Otherwise, if the error is reset to null, the connector status is updated
|
|
998
998
|
to connected.
|
|
999
999
|
|
|
1000
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1000
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-error-api.html>`_
|
|
1001
1001
|
|
|
1002
1002
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1003
1003
|
:param error:
|
|
@@ -1055,7 +1055,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1055
1055
|
is activated once validated by the running Elastic connector service. The filtering
|
|
1056
1056
|
property is used to configure sync rules (both basic and advanced) for a connector.
|
|
1057
1057
|
|
|
1058
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1058
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-filtering-api.html>`_
|
|
1059
1059
|
|
|
1060
1060
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1061
1061
|
:param advanced_snippet:
|
|
@@ -1113,7 +1113,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1113
1113
|
Update the connector draft filtering validation. Update the draft filtering validation
|
|
1114
1114
|
info for a connector.
|
|
1115
1115
|
|
|
1116
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1116
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-filtering-validation-api.html>`_
|
|
1117
1117
|
|
|
1118
1118
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1119
1119
|
:param validation:
|
|
@@ -1167,7 +1167,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1167
1167
|
Update the connector index name. Update the `index_name` field of a connector,
|
|
1168
1168
|
specifying the index where the data ingested by the connector is stored.
|
|
1169
1169
|
|
|
1170
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1170
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-index-name-api.html>`_
|
|
1171
1171
|
|
|
1172
1172
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1173
1173
|
:param index_name:
|
|
@@ -1221,7 +1221,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1221
1221
|
"""
|
|
1222
1222
|
Update the connector name and description.
|
|
1223
1223
|
|
|
1224
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1224
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-name-description-api.html>`_
|
|
1225
1225
|
|
|
1226
1226
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1227
1227
|
:param description:
|
|
@@ -1275,7 +1275,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1275
1275
|
"""
|
|
1276
1276
|
Update the connector is_native flag.
|
|
1277
1277
|
|
|
1278
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1278
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-native-api.html>`_
|
|
1279
1279
|
|
|
1280
1280
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1281
1281
|
:param is_native:
|
|
@@ -1329,7 +1329,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1329
1329
|
Update the connector pipeline. When you create a new connector, the configuration
|
|
1330
1330
|
of an ingest pipeline is populated with default settings.
|
|
1331
1331
|
|
|
1332
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1332
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-pipeline-api.html>`_
|
|
1333
1333
|
|
|
1334
1334
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1335
1335
|
:param pipeline:
|
|
@@ -1382,7 +1382,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1382
1382
|
"""
|
|
1383
1383
|
Update the connector scheduling.
|
|
1384
1384
|
|
|
1385
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1385
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-scheduling-api.html>`_
|
|
1386
1386
|
|
|
1387
1387
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1388
1388
|
:param scheduling:
|
|
@@ -1435,7 +1435,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1435
1435
|
"""
|
|
1436
1436
|
Update the connector service type.
|
|
1437
1437
|
|
|
1438
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1438
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-service-type-api.html>`_
|
|
1439
1439
|
|
|
1440
1440
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1441
1441
|
:param service_type:
|
|
@@ -1495,7 +1495,7 @@ class ConnectorClient(NamespacedClient):
|
|
|
1495
1495
|
"""
|
|
1496
1496
|
Update the connector status.
|
|
1497
1497
|
|
|
1498
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
1498
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-connector-status-api.html>`_
|
|
1499
1499
|
|
|
1500
1500
|
:param connector_id: The unique identifier of the connector to be updated
|
|
1501
1501
|
:param status:
|
|
@@ -44,7 +44,7 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
44
44
|
For example, this can happen if you delete more than `cluster.indices.tombstones.size`
|
|
45
45
|
indices while an Elasticsearch node is offline.
|
|
46
46
|
|
|
47
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
47
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-gateway-dangling-indices.html>`_
|
|
48
48
|
|
|
49
49
|
:param index_uuid: The UUID of the index to delete. Use the get dangling indices
|
|
50
50
|
API to find the UUID.
|
|
@@ -103,7 +103,7 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
103
103
|
For example, this can happen if you delete more than `cluster.indices.tombstones.size`
|
|
104
104
|
indices while an Elasticsearch node is offline.
|
|
105
105
|
|
|
106
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
106
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-gateway-dangling-indices.html>`_
|
|
107
107
|
|
|
108
108
|
:param index_uuid: The UUID of the index to import. Use the get dangling indices
|
|
109
109
|
API to locate the UUID.
|
|
@@ -162,7 +162,7 @@ class DanglingIndicesClient(NamespacedClient):
|
|
|
162
162
|
indices while an Elasticsearch node is offline. Use this API to list dangling
|
|
163
163
|
indices, which you can then import or delete.
|
|
164
164
|
|
|
165
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
165
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/modules-gateway-dangling-indices.html>`_
|
|
166
166
|
"""
|
|
167
167
|
__path_parts: t.Dict[str, str] = {}
|
|
168
168
|
__path = "/_dangling"
|
|
@@ -38,7 +38,7 @@ class EnrichClient(NamespacedClient):
|
|
|
38
38
|
"""
|
|
39
39
|
Delete an enrich policy. Deletes an existing enrich policy and its enrich index.
|
|
40
40
|
|
|
41
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
41
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-enrich-policy-api.html>`_
|
|
42
42
|
|
|
43
43
|
:param name: Enrich policy to delete.
|
|
44
44
|
"""
|
|
@@ -77,9 +77,9 @@ class EnrichClient(NamespacedClient):
|
|
|
77
77
|
wait_for_completion: t.Optional[bool] = None,
|
|
78
78
|
) -> ObjectApiResponse[t.Any]:
|
|
79
79
|
"""
|
|
80
|
-
|
|
80
|
+
Run an enrich policy. Create the enrich index for an existing enrich policy.
|
|
81
81
|
|
|
82
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
82
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/execute-enrich-policy-api.html>`_
|
|
83
83
|
|
|
84
84
|
:param name: Enrich policy to execute.
|
|
85
85
|
:param wait_for_completion: If `true`, the request blocks other enrich policy
|
|
@@ -123,7 +123,7 @@ class EnrichClient(NamespacedClient):
|
|
|
123
123
|
"""
|
|
124
124
|
Get an enrich policy. Returns information about an enrich policy.
|
|
125
125
|
|
|
126
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
126
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-enrich-policy-api.html>`_
|
|
127
127
|
|
|
128
128
|
:param name: Comma-separated list of enrich policy names used to limit the request.
|
|
129
129
|
To return information for all enrich policies, omit this parameter.
|
|
@@ -173,7 +173,7 @@ class EnrichClient(NamespacedClient):
|
|
|
173
173
|
"""
|
|
174
174
|
Create an enrich policy. Creates an enrich policy.
|
|
175
175
|
|
|
176
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
176
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-enrich-policy-api.html>`_
|
|
177
177
|
|
|
178
178
|
:param name: Name of the enrich policy to create or update.
|
|
179
179
|
:param geo_match: Matches enrich data to incoming documents based on a `geo_shape`
|
|
@@ -227,7 +227,7 @@ class EnrichClient(NamespacedClient):
|
|
|
227
227
|
Get enrich stats. Returns enrich coordinator statistics and information about
|
|
228
228
|
enrich policies that are currently executing.
|
|
229
229
|
|
|
230
|
-
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.
|
|
230
|
+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/enrich-stats-api.html>`_
|
|
231
231
|
"""
|
|
232
232
|
__path_parts: t.Dict[str, str] = {}
|
|
233
233
|
__path = "/_enrich/_stats"
|