elasticsearch 8.17.1__py3-none-any.whl → 8.17.2__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.
Files changed (95) hide show
  1. elasticsearch/__init__.py +2 -2
  2. elasticsearch/_async/client/__init__.py +1971 -779
  3. elasticsearch/_async/client/async_search.py +33 -22
  4. elasticsearch/_async/client/autoscaling.py +27 -21
  5. elasticsearch/_async/client/cat.py +216 -141
  6. elasticsearch/_async/client/ccr.py +96 -70
  7. elasticsearch/_async/client/cluster.py +150 -142
  8. elasticsearch/_async/client/connector.py +182 -86
  9. elasticsearch/_async/client/dangling_indices.py +19 -13
  10. elasticsearch/_async/client/enrich.py +25 -6
  11. elasticsearch/_async/client/eql.py +22 -9
  12. elasticsearch/_async/client/esql.py +295 -3
  13. elasticsearch/_async/client/features.py +25 -25
  14. elasticsearch/_async/client/fleet.py +15 -9
  15. elasticsearch/_async/client/graph.py +9 -8
  16. elasticsearch/_async/client/ilm.py +85 -55
  17. elasticsearch/_async/client/indices.py +692 -549
  18. elasticsearch/_async/client/inference.py +32 -28
  19. elasticsearch/_async/client/ingest.py +61 -22
  20. elasticsearch/_async/client/license.py +48 -31
  21. elasticsearch/_async/client/logstash.py +17 -6
  22. elasticsearch/_async/client/migration.py +23 -14
  23. elasticsearch/_async/client/ml.py +532 -284
  24. elasticsearch/_async/client/monitoring.py +5 -2
  25. elasticsearch/_async/client/nodes.py +43 -27
  26. elasticsearch/_async/client/query_rules.py +51 -25
  27. elasticsearch/_async/client/rollup.py +111 -73
  28. elasticsearch/_async/client/search_application.py +49 -21
  29. elasticsearch/_async/client/searchable_snapshots.py +21 -8
  30. elasticsearch/_async/client/security.py +810 -472
  31. elasticsearch/_async/client/shutdown.py +31 -26
  32. elasticsearch/_async/client/simulate.py +16 -22
  33. elasticsearch/_async/client/slm.py +55 -30
  34. elasticsearch/_async/client/snapshot.py +173 -192
  35. elasticsearch/_async/client/sql.py +37 -16
  36. elasticsearch/_async/client/ssl.py +16 -17
  37. elasticsearch/_async/client/synonyms.py +50 -29
  38. elasticsearch/_async/client/tasks.py +74 -39
  39. elasticsearch/_async/client/text_structure.py +61 -52
  40. elasticsearch/_async/client/transform.py +108 -79
  41. elasticsearch/_async/client/watcher.py +93 -57
  42. elasticsearch/_async/client/xpack.py +16 -7
  43. elasticsearch/_async/helpers.py +1 -1
  44. elasticsearch/_sync/client/__init__.py +1971 -779
  45. elasticsearch/_sync/client/async_search.py +33 -22
  46. elasticsearch/_sync/client/autoscaling.py +27 -21
  47. elasticsearch/_sync/client/cat.py +216 -141
  48. elasticsearch/_sync/client/ccr.py +96 -70
  49. elasticsearch/_sync/client/cluster.py +150 -142
  50. elasticsearch/_sync/client/connector.py +182 -86
  51. elasticsearch/_sync/client/dangling_indices.py +19 -13
  52. elasticsearch/_sync/client/enrich.py +25 -6
  53. elasticsearch/_sync/client/eql.py +22 -9
  54. elasticsearch/_sync/client/esql.py +295 -3
  55. elasticsearch/_sync/client/features.py +25 -25
  56. elasticsearch/_sync/client/fleet.py +15 -9
  57. elasticsearch/_sync/client/graph.py +9 -8
  58. elasticsearch/_sync/client/ilm.py +85 -55
  59. elasticsearch/_sync/client/indices.py +692 -549
  60. elasticsearch/_sync/client/inference.py +32 -28
  61. elasticsearch/_sync/client/ingest.py +61 -22
  62. elasticsearch/_sync/client/license.py +48 -31
  63. elasticsearch/_sync/client/logstash.py +17 -6
  64. elasticsearch/_sync/client/migration.py +23 -14
  65. elasticsearch/_sync/client/ml.py +532 -284
  66. elasticsearch/_sync/client/monitoring.py +5 -2
  67. elasticsearch/_sync/client/nodes.py +43 -27
  68. elasticsearch/_sync/client/query_rules.py +51 -25
  69. elasticsearch/_sync/client/rollup.py +111 -73
  70. elasticsearch/_sync/client/search_application.py +49 -21
  71. elasticsearch/_sync/client/searchable_snapshots.py +21 -8
  72. elasticsearch/_sync/client/security.py +810 -472
  73. elasticsearch/_sync/client/shutdown.py +31 -26
  74. elasticsearch/_sync/client/simulate.py +16 -22
  75. elasticsearch/_sync/client/slm.py +55 -30
  76. elasticsearch/_sync/client/snapshot.py +173 -192
  77. elasticsearch/_sync/client/sql.py +37 -16
  78. elasticsearch/_sync/client/ssl.py +16 -17
  79. elasticsearch/_sync/client/synonyms.py +50 -29
  80. elasticsearch/_sync/client/tasks.py +74 -39
  81. elasticsearch/_sync/client/text_structure.py +61 -52
  82. elasticsearch/_sync/client/transform.py +108 -79
  83. elasticsearch/_sync/client/utils.py +1 -1
  84. elasticsearch/_sync/client/watcher.py +93 -57
  85. elasticsearch/_sync/client/xpack.py +16 -7
  86. elasticsearch/_version.py +1 -1
  87. elasticsearch/client.py +2 -0
  88. elasticsearch/helpers/actions.py +1 -1
  89. elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
  90. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
  91. elasticsearch-8.17.2.dist-info/RECORD +119 -0
  92. elasticsearch-8.17.1.dist-info/RECORD +0 -119
  93. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
  94. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
  95. {elasticsearch-8.17.1.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
@@ -44,13 +44,14 @@ class ClusterClient(NamespacedClient):
44
44
  body: t.Optional[t.Dict[str, t.Any]] = None,
45
45
  ) -> ObjectApiResponse[t.Any]:
46
46
  """
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.
47
+ .. raw:: html
48
+
49
+ <p>Explain the shard allocations.
50
+ Get explanations for shard allocations in the cluster.
51
+ For unassigned shards, it provides an explanation for why the shard is unassigned.
52
+ 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.
53
+ 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.</p>
54
+
54
55
 
55
56
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-allocation-explain.html>`_
56
57
 
@@ -119,8 +120,11 @@ class ClusterClient(NamespacedClient):
119
120
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
120
121
  ) -> ObjectApiResponse[t.Any]:
121
122
  """
122
- Delete component templates. Component templates are building blocks for constructing
123
- index templates that specify index mappings, settings, and aliases.
123
+ .. raw:: html
124
+
125
+ <p>Delete component templates.
126
+ Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
127
+
124
128
 
125
129
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
126
130
 
@@ -170,8 +174,11 @@ class ClusterClient(NamespacedClient):
170
174
  wait_for_removal: t.Optional[bool] = None,
171
175
  ) -> ObjectApiResponse[t.Any]:
172
176
  """
173
- Clear cluster voting config exclusions. Remove master-eligible nodes from the
174
- voting configuration exclusion list.
177
+ .. raw:: html
178
+
179
+ <p>Clear cluster voting config exclusions.
180
+ Remove master-eligible nodes from the voting configuration exclusion list.</p>
181
+
175
182
 
176
183
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
177
184
 
@@ -218,8 +225,11 @@ class ClusterClient(NamespacedClient):
218
225
  pretty: t.Optional[bool] = None,
219
226
  ) -> HeadApiResponse:
220
227
  """
221
- Check component templates. Returns information about whether a particular component
222
- template exists.
228
+ .. raw:: html
229
+
230
+ <p>Check component templates.
231
+ Returns information about whether a particular component template exists.</p>
232
+
223
233
 
224
234
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
225
235
 
@@ -274,7 +284,11 @@ class ClusterClient(NamespacedClient):
274
284
  pretty: t.Optional[bool] = None,
275
285
  ) -> ObjectApiResponse[t.Any]:
276
286
  """
277
- Get component templates. Get information about component templates.
287
+ .. raw:: html
288
+
289
+ <p>Get component templates.
290
+ Get information about component templates.</p>
291
+
278
292
 
279
293
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
280
294
 
@@ -337,8 +351,11 @@ class ClusterClient(NamespacedClient):
337
351
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
338
352
  ) -> ObjectApiResponse[t.Any]:
339
353
  """
340
- Get cluster-wide settings. By default, it returns only settings that have been
341
- explicitly defined.
354
+ .. raw:: html
355
+
356
+ <p>Get cluster-wide settings.
357
+ By default, it returns only settings that have been explicitly defined.</p>
358
+
342
359
 
343
360
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-get-settings.html>`_
344
361
 
@@ -420,16 +437,17 @@ class ClusterClient(NamespacedClient):
420
437
  ] = None,
421
438
  ) -> ObjectApiResponse[t.Any]:
422
439
  """
423
- Get the cluster health status. You can also use the API to get the health status
424
- of only specified data streams and indices. For data streams, the API retrieves
425
- the health status of the stream’s backing indices. The cluster health status
426
- is: green, yellow or red. On the shard level, a red status indicates that the
427
- specific shard is not allocated in the cluster. Yellow means that the primary
428
- shard is allocated but replicas are not. Green means that all shards are allocated.
429
- The index level status is controlled by the worst shard status. One of the main
430
- benefits of the API is the ability to wait until the cluster reaches a certain
431
- high watermark health level. The cluster status is controlled by the worst index
432
- status.
440
+ .. raw:: html
441
+
442
+ <p>Get the cluster health status.
443
+ You can also use the API to get the health status of only specified data streams and indices.
444
+ For data streams, the API retrieves the health status of the stream’s backing indices.</p>
445
+ <p>The cluster health status is: green, yellow or red.
446
+ On the shard level, a red status indicates that the specific shard is not allocated in the cluster. Yellow means that the primary shard is allocated but replicas are not. Green means that all shards are allocated.
447
+ The index level status is controlled by the worst shard status.</p>
448
+ <p>One of the main benefits of the API is the ability to wait until the cluster reaches a certain high watermark health level.
449
+ The cluster status is controlled by the worst index status.</p>
450
+
433
451
 
434
452
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-health.html>`_
435
453
 
@@ -533,7 +551,11 @@ class ClusterClient(NamespacedClient):
533
551
  pretty: t.Optional[bool] = None,
534
552
  ) -> ObjectApiResponse[t.Any]:
535
553
  """
536
- Get cluster info. Returns basic information about the cluster.
554
+ .. raw:: html
555
+
556
+ <p>Get cluster info.
557
+ Returns basic information about the cluster.</p>
558
+
537
559
 
538
560
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-info.html>`_
539
561
 
@@ -575,14 +597,14 @@ class ClusterClient(NamespacedClient):
575
597
  pretty: t.Optional[bool] = None,
576
598
  ) -> ObjectApiResponse[t.Any]:
577
599
  """
578
- Get the pending cluster tasks. Get information about cluster-level changes (such
579
- as create index, update mapping, allocate or fail shard) that have not yet taken
580
- effect. NOTE: This API returns a list of any pending updates to the cluster state.
581
- These are distinct from the tasks reported by the task management API which include
582
- periodic tasks and tasks initiated by the user, such as node stats, search queries,
583
- or create index requests. However, if a user-initiated task such as a create
584
- index command causes a cluster state update, the activity of this task might
585
- be reported by both task api and pending cluster tasks API.
600
+ .. raw:: html
601
+
602
+ <p>Get the pending cluster tasks.
603
+ Get information about cluster-level changes (such as create index, update mapping, allocate or fail shard) that have not yet taken effect.</p>
604
+ <p>NOTE: This API returns a list of any pending updates to the cluster state.
605
+ 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.
606
+ 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>
607
+
586
608
 
587
609
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-pending.html>`_
588
610
 
@@ -630,33 +652,24 @@ class ClusterClient(NamespacedClient):
630
652
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
631
653
  ) -> ObjectApiResponse[t.Any]:
632
654
  """
633
- Update voting configuration exclusions. Update the cluster voting config exclusions
634
- by node IDs or node names. By default, if there are more than three master-eligible
635
- nodes in the cluster and you remove fewer than half of the master-eligible nodes
636
- in the cluster at once, the voting configuration automatically shrinks. If you
637
- want to shrink the voting configuration to contain fewer than three nodes or
638
- to remove half or more of the master-eligible nodes in the cluster at once, use
639
- this API to remove departing nodes from the voting configuration manually. The
640
- API adds an entry for each specified node to the cluster’s voting configuration
641
- exclusions list. It then waits until the cluster has reconfigured its voting
642
- configuration to exclude the specified nodes. Clusters should have no voting
643
- configuration exclusions in normal operation. Once the excluded nodes have stopped,
644
- clear the voting configuration exclusions with `DELETE /_cluster/voting_config_exclusions`.
645
- This API waits for the nodes to be fully removed from the cluster before it returns.
646
- If your cluster has voting configuration exclusions for nodes that you no longer
647
- intend to remove, use `DELETE /_cluster/voting_config_exclusions?wait_for_removal=false`
648
- to clear the voting configuration exclusions without waiting for the nodes to
649
- leave the cluster. A response to `POST /_cluster/voting_config_exclusions` with
650
- an HTTP status code of 200 OK guarantees that the node has been removed from
651
- the voting configuration and will not be reinstated until the voting configuration
652
- exclusions are cleared by calling `DELETE /_cluster/voting_config_exclusions`.
653
- If the call to `POST /_cluster/voting_config_exclusions` fails or returns a response
654
- with an HTTP status code other than 200 OK then the node may not have been removed
655
- from the voting configuration. In that case, you may safely retry the call. NOTE:
656
- Voting exclusions are required only when you remove at least half of the master-eligible
657
- nodes from a cluster in a short time period. They are not required when removing
658
- master-ineligible nodes or when removing fewer than half of the master-eligible
659
- nodes.
655
+ .. raw:: html
656
+
657
+ <p>Update voting configuration exclusions.
658
+ Update the cluster voting config exclusions by node IDs or node names.
659
+ 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.
660
+ 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.
661
+ The API adds an entry for each specified node to the cluster’s voting configuration exclusions list.
662
+ It then waits until the cluster has reconfigured its voting configuration to exclude the specified nodes.</p>
663
+ <p>Clusters should have no voting configuration exclusions in normal operation.
664
+ Once the excluded nodes have stopped, clear the voting configuration exclusions with <code>DELETE /_cluster/voting_config_exclusions</code>.
665
+ This API waits for the nodes to be fully removed from the cluster before it returns.
666
+ If your cluster has voting configuration exclusions for nodes that you no longer intend to remove, use <code>DELETE /_cluster/voting_config_exclusions?wait_for_removal=false</code> to clear the voting configuration exclusions without waiting for the nodes to leave the cluster.</p>
667
+ <p>A response to <code>POST /_cluster/voting_config_exclusions</code> with an HTTP status code of 200 OK guarantees that the node has been removed from the voting configuration and will not be reinstated until the voting configuration exclusions are cleared by calling <code>DELETE /_cluster/voting_config_exclusions</code>.
668
+ If the call to <code>POST /_cluster/voting_config_exclusions</code> fails or returns a response with an HTTP status code other than 200 OK then the node may not have been removed from the voting configuration.
669
+ In that case, you may safely retry the call.</p>
670
+ <p>NOTE: Voting exclusions are required only when you remove at least half of the master-eligible nodes from a cluster in a short time period.
671
+ They are not required when removing master-ineligible nodes or when removing fewer than half of the master-eligible nodes.</p>
672
+
660
673
 
661
674
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/voting-config-exclusions.html>`_
662
675
 
@@ -718,21 +731,23 @@ class ClusterClient(NamespacedClient):
718
731
  body: t.Optional[t.Dict[str, t.Any]] = None,
719
732
  ) -> ObjectApiResponse[t.Any]:
720
733
  """
721
- Create or update a component template. Component templates are building blocks
722
- for constructing index templates that specify index mappings, settings, and aliases.
723
- An index template can be composed of multiple component templates. To use a component
724
- template, specify it in an index template’s `composed_of` list. Component templates
725
- are only applied to new data streams and indices as part of a matching index
726
- template. Settings and mappings specified directly in the index template or the
727
- create index request override any settings or mappings specified in a component
728
- template. Component templates are only used during index creation. For data streams,
729
- this includes data stream creation and the creation of a stream’s backing indices.
730
- Changes to component templates do not affect existing indices, including a stream’s
731
- backing indices. You can use C-style `/* *\\/` block comments in component templates.
732
- You can include comments anywhere in the request body except before the opening
733
- curly bracket. **Applying component templates** You cannot directly apply a component
734
- template to a data stream or index. To be applied, a component template must
735
- be included in an index template's `composed_of` list.
734
+ .. raw:: html
735
+
736
+ <p>Create or update a component template.
737
+ Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.</p>
738
+ <p>An index template can be composed of multiple component templates.
739
+ To use a component template, specify it in an index template’s <code>composed_of</code> list.
740
+ Component templates are only applied to new data streams and indices as part of a matching index template.</p>
741
+ <p>Settings and mappings specified directly in the index template or the create index request override any settings or mappings specified in a component template.</p>
742
+ <p>Component templates are only used during index creation.
743
+ For data streams, this includes data stream creation and the creation of a stream’s backing indices.
744
+ Changes to component templates do not affect existing indices, including a stream’s backing indices.</p>
745
+ <p>You can use C-style <code>/* *\\/</code> block comments in component templates.
746
+ You can include comments anywhere in the request body except before the opening curly bracket.</p>
747
+ <p><strong>Applying component templates</strong></p>
748
+ <p>You cannot directly apply a component template to a data stream or index.
749
+ To be applied, a component template must be included in an index template's <code>composed_of</code> list.</p>
750
+
736
751
 
737
752
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/indices-component-template.html>`_
738
753
 
@@ -821,26 +836,23 @@ class ClusterClient(NamespacedClient):
821
836
  body: t.Optional[t.Dict[str, t.Any]] = None,
822
837
  ) -> ObjectApiResponse[t.Any]:
823
838
  """
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.
839
+ .. raw:: html
840
+
841
+ <p>Update the cluster settings.
842
+ Configure and update dynamic settings on a running cluster.
843
+ You can also configure dynamic settings locally on an unstarted or shut down node in <code>elasticsearch.yml</code>.</p>
844
+ <p>Updates made with this API can be persistent, which apply across cluster restarts, or transient, which reset after a cluster restart.
845
+ You can also reset transient or persistent settings by assigning them a null value.</p>
846
+ <p>If you configure the same setting using multiple methods, Elasticsearch applies the settings in following order of precedence: 1) Transient setting; 2) Persistent setting; 3) <code>elasticsearch.yml</code> setting; 4) Default setting value.
847
+ For example, you can apply a transient setting to override a persistent setting or <code>elasticsearch.yml</code> setting.
848
+ However, a change to an <code>elasticsearch.yml</code> setting will not override a defined transient or persistent setting.</p>
849
+ <p>TIP: In Elastic Cloud, use the user settings feature to configure all cluster settings. This method automatically rejects unsafe settings that could break your cluster.
850
+ If you run Elasticsearch on your own hardware, use this API to configure dynamic cluster settings.
851
+ Only use <code>elasticsearch.yml</code> for static cluster settings and node settings.
852
+ The API doesn’t require a restart and ensures a setting’s value is the same on all nodes.</p>
853
+ <p>WARNING: Transient cluster settings are no longer recommended. Use persistent cluster settings instead.
854
+ If a cluster becomes unstable, transient settings can clear unexpectedly, resulting in a potentially undesired cluster configuration.</p>
855
+
844
856
 
845
857
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-update-settings.html>`_
846
858
 
@@ -894,9 +906,12 @@ class ClusterClient(NamespacedClient):
894
906
  pretty: t.Optional[bool] = None,
895
907
  ) -> ObjectApiResponse[t.Any]:
896
908
  """
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.
909
+ .. raw:: html
910
+
911
+ <p>Get remote cluster information.
912
+ Get all of the configured remote cluster information.
913
+ This API returns connection and endpoint information keyed by the configured remote cluster alias.</p>
914
+
900
915
 
901
916
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-remote-info.html>`_
902
917
  """
@@ -941,25 +956,19 @@ class ClusterClient(NamespacedClient):
941
956
  body: t.Optional[t.Dict[str, t.Any]] = None,
942
957
  ) -> ObjectApiResponse[t.Any]:
943
958
  """
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.
959
+ .. raw:: html
960
+
961
+ <p>Reroute the cluster.
962
+ Manually change the allocation of individual shards in the cluster.
963
+ 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>
964
+ <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.
965
+ 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>
966
+ <p>The cluster can be set to disable allocations using the <code>cluster.routing.allocation.enable</code> setting.
967
+ If allocations are disabled then the only allocations that will be performed are explicit ones given using the reroute command, and consequent allocations due to rebalancing.</p>
968
+ <p>The cluster will attempt to allocate a shard a maximum of <code>index.allocation.max_retries</code> times in a row (defaults to <code>5</code>), before giving up and leaving the shard unallocated.
969
+ This scenario can be caused by structural problems such as having an analyzer which refers to a stopwords file which doesn’t exist on all nodes.</p>
970
+ <p>Once the problem has been corrected, allocation can be manually retried by calling the reroute API with the <code>?retry_failed</code> URI query parameter, which will attempt a single retry round for these shards.</p>
971
+
963
972
 
964
973
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-reroute.html>`_
965
974
 
@@ -1048,26 +1057,23 @@ class ClusterClient(NamespacedClient):
1048
1057
  wait_for_timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
1049
1058
  ) -> ObjectApiResponse[t.Any]:
1050
1059
  """
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.
1060
+ .. raw:: html
1061
+
1062
+ <p>Get the cluster state.
1063
+ Get comprehensive information about the state of the cluster.</p>
1064
+ <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>
1065
+ <p>The elected master node ensures that every node in the cluster has a copy of the same cluster state.
1066
+ This API lets you retrieve a representation of this internal state for debugging or diagnostic purposes.
1067
+ You may need to consult the Elasticsearch source code to determine the precise meaning of the response.</p>
1068
+ <p>By default the API will route requests to the elected master node since this node is the authoritative source of cluster states.
1069
+ You can also retrieve the cluster state held on the node handling the API request by adding the <code>?local=true</code> query parameter.</p>
1070
+ <p>Elasticsearch may need to expend significant effort to compute a response to this API in larger clusters, and the response may comprise a very large quantity of data.
1071
+ If you use this API repeatedly, your cluster may become unstable.</p>
1072
+ <p>WARNING: The response is a representation of an internal data structure.
1073
+ Its format is not subject to the same compatibility guarantees as other more stable APIs and may change from version to version.
1074
+ Do not query this API using external monitoring tools.
1075
+ Instead, obtain the information you require using other more stable cluster APIs.</p>
1076
+
1071
1077
 
1072
1078
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-state.html>`_
1073
1079
 
@@ -1151,9 +1157,11 @@ class ClusterClient(NamespacedClient):
1151
1157
  timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
1152
1158
  ) -> ObjectApiResponse[t.Any]:
1153
1159
  """
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).
1160
+ .. raw:: html
1161
+
1162
+ <p>Get cluster statistics.
1163
+ 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>
1164
+
1157
1165
 
1158
1166
  `<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/cluster-stats.html>`_
1159
1167