Skip to content

Commit 18c5b70

Browse files
authored
API updates for 8.9.0 (#2260)
1 parent 42abfad commit 18c5b70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+965
-847
lines changed

docs/guide/release-notes.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[[release-notes]]
22
== Release notes
33

4+
* <<rn-8-9-0>>
45
* <<rn-8-8-0>>
56
* <<rn-8-7-0>>
67
* <<rn-8-6-2>>
@@ -27,6 +28,13 @@
2728
* <<rn-8-1-0>>
2829
* <<rn-8-0-0>>
2930

31+
[discrete]
32+
[[rn-8-9-0]]
33+
=== 8.9.0 (2023-07-27)
34+
35+
* Added the [`cluster.info`](https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cluster-info.html) API
36+
* Updated the `inference_config` argument in `ml.put_trained_model` API to reflect an improvement in the specification
37+
3038
[discrete]
3139
[[rn-8-8-0]]
3240
=== 8.8.0 (2023-05-25)

elasticsearch/_async/client/__init__.py

Lines changed: 43 additions & 43 deletions
Large diffs are not rendered by default.

elasticsearch/_async/client/async_search.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete(
4040
Deletes an async search by ID. If the search is still running, the search request
4141
will be cancelled. Otherwise, the saved search results are deleted.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html>`_
4444
4545
:param id: A unique identifier for the async search.
4646
"""
@@ -82,7 +82,7 @@ async def get(
8282
Retrieves the results of a previously submitted async search request given its
8383
ID.
8484
85-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
85+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html>`_
8686
8787
:param id: A unique identifier for the async search.
8888
:param keep_alive: Specifies how long the async search should be available in
@@ -139,7 +139,7 @@ async def status(
139139
Retrieves the status of a previously submitted async search request given its
140140
ID.
141141
142-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
142+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html>`_
143143
144144
:param id: A unique identifier for the async search.
145145
"""
@@ -310,7 +310,7 @@ async def submit(
310310
"""
311311
Executes a search request asynchronously.
312312
313-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/async-search.html>`_
313+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/async-search.html>`_
314314
315315
:param index: A comma-separated list of index names to search; use `_all` or
316316
empty string to perform the operation on all indices

elasticsearch/_async/client/autoscaling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async def delete_autoscaling_policy(
4040
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
4141
Direct use is not supported.
4242
43-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-delete-autoscaling-policy.html>`_
43+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-delete-autoscaling-policy.html>`_
4444
4545
:param name: the name of the autoscaling policy
4646
"""
@@ -76,7 +76,7 @@ async def get_autoscaling_capacity(
7676
Gets the current autoscaling capacity based on the configured autoscaling policy.
7777
Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
7878
79-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
79+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-get-autoscaling-capacity.html>`_
8080
"""
8181
__path = "/_autoscaling/capacity"
8282
__query: t.Dict[str, t.Any] = {}
@@ -109,7 +109,7 @@ async def get_autoscaling_policy(
109109
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
110110
Direct use is not supported.
111111
112-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-get-autoscaling-capacity.html>`_
112+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-get-autoscaling-capacity.html>`_
113113
114114
:param name: the name of the autoscaling policy
115115
"""
@@ -149,7 +149,7 @@ async def put_autoscaling_policy(
149149
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK.
150150
Direct use is not supported.
151151
152-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/autoscaling-put-autoscaling-policy.html>`_
152+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/autoscaling-put-autoscaling-policy.html>`_
153153
154154
:param name: the name of the autoscaling policy
155155
:param policy:

elasticsearch/_async/client/cat.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def aliases(
6767
Shows information about currently configured aliases to indices including filter
6868
and routing infos.
6969
70-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
70+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-alias.html>`_
7171
7272
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
7373
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
@@ -152,7 +152,7 @@ async def allocation(
152152
Provides a snapshot of how many shards are allocated to each data node and how
153153
much disk space they are using.
154154
155-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
155+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-allocation.html>`_
156156
157157
:param node_id: Comma-separated list of node identifiers or names used to limit
158158
the returned information.
@@ -230,7 +230,7 @@ async def component_templates(
230230
"""
231231
Returns information about existing component_templates templates.
232232
233-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-component-templates.html>`_
234234
235235
:param name: The name of the component template. Accepts wildcard expressions.
236236
If omitted, all component templates are returned.
@@ -306,7 +306,7 @@ async def count(
306306
Provides quick access to the document count of the entire cluster, or individual
307307
indices.
308308
309-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
309+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-count.html>`_
310310
311311
:param index: Comma-separated list of data streams, indices, and aliases used
312312
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -388,7 +388,7 @@ async def fielddata(
388388
Shows how much heap memory is currently being used by fielddata on every data
389389
node in the cluster.
390390
391-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
391+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-fielddata.html>`_
392392
393393
:param fields: Comma-separated list of fields used to limit returned information.
394394
To retrieve all fields, omit this parameter.
@@ -469,7 +469,7 @@ async def health(
469469
"""
470470
Returns a concise representation of the cluster health.
471471
472-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html>`_
472+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-health.html>`_
473473
474474
:param format: Specifies the format to return the columnar data in, can be set
475475
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -544,7 +544,7 @@ async def help(
544544
"""
545545
Returns help for the Cat APIs.
546546
547-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html>`_
547+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat.html>`_
548548
549549
:param format: Specifies the format to return the columnar data in, can be set
550550
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -642,7 +642,7 @@ async def indices(
642642
Returns information about indices: number of primaries and replicas, document
643643
counts, disk size, ...
644644
645-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
645+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-indices.html>`_
646646
647647
:param index: Comma-separated list of data streams, indices, and aliases used
648648
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -737,7 +737,7 @@ async def master(
737737
"""
738738
Returns information about the master node.
739739
740-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html>`_
740+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-master.html>`_
741741
742742
:param format: Specifies the format to return the columnar data in, can be set
743743
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -856,7 +856,7 @@ async def ml_data_frame_analytics(
856856
"""
857857
Gets configuration and usage information about data frame analytics jobs.
858858
859-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-dfanalytics.html>`_
859+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-dfanalytics.html>`_
860860
861861
:param id: The ID of the data frame analytics to fetch
862862
:param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -987,7 +987,7 @@ async def ml_datafeeds(
987987
"""
988988
Gets configuration and usage information about datafeeds.
989989
990-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-datafeeds.html>`_
990+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-datafeeds.html>`_
991991
992992
:param datafeed_id: A numerical character string that uniquely identifies the
993993
datafeed.
@@ -1124,7 +1124,7 @@ async def ml_jobs(
11241124
"""
11251125
Gets configuration and usage information about anomaly detection jobs.
11261126
1127-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-anomaly-detectors.html>`_
1127+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-anomaly-detectors.html>`_
11281128
11291129
:param job_id: Identifier for the anomaly detection job.
11301130
:param allow_no_match: Specifies what to do when the request: * Contains wildcard
@@ -1264,7 +1264,7 @@ async def ml_trained_models(
12641264
"""
12651265
Gets configuration and usage information about inference trained models.
12661266
1267-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-trained-model.html>`_
1267+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-trained-model.html>`_
12681268
12691269
:param model_id: The ID of the trained models stats to fetch
12701270
:param allow_no_match: Whether to ignore if a wildcard expression matches no
@@ -1349,7 +1349,7 @@ async def nodeattrs(
13491349
"""
13501350
Returns information about custom node attributes.
13511351
1352-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html>`_
1352+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-nodeattrs.html>`_
13531353
13541354
:param format: Specifies the format to return the columnar data in, can be set
13551355
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1423,7 +1423,7 @@ async def nodes(
14231423
"""
14241424
Returns basic statistics about performance of cluster nodes.
14251425
1426-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
1426+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-nodes.html>`_
14271427
14281428
:param bytes: The unit used to display byte values.
14291429
:param format: Specifies the format to return the columnar data in, can be set
@@ -1503,7 +1503,7 @@ async def pending_tasks(
15031503
"""
15041504
Returns a concise representation of the cluster pending tasks.
15051505
1506-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-pending-tasks.html>`_
1506+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-pending-tasks.html>`_
15071507
15081508
:param format: Specifies the format to return the columnar data in, can be set
15091509
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1572,7 +1572,7 @@ async def plugins(
15721572
"""
15731573
Returns information about installed plugins across nodes node.
15741574
1575-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html>`_
1575+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-plugins.html>`_
15761576
15771577
:param format: Specifies the format to return the columnar data in, can be set
15781578
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1647,7 +1647,7 @@ async def recovery(
16471647
"""
16481648
Returns information about index shard recoveries, both on-going completed.
16491649
1650-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
1650+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-recovery.html>`_
16511651
16521652
:param index: A comma-separated list of data streams, indices, and aliases used
16531653
to limit the request. Supports wildcards (`*`). To target all data streams
@@ -1732,7 +1732,7 @@ async def repositories(
17321732
"""
17331733
Returns information about snapshot repositories registered in the cluster.
17341734
1735-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html>`_
1735+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-repositories.html>`_
17361736
17371737
:param format: Specifies the format to return the columnar data in, can be set
17381738
to `text`, `json`, `cbor`, `yaml`, or `smile`.
@@ -1805,7 +1805,7 @@ async def segments(
18051805
"""
18061806
Provides low-level information about the segments in the shards of an index.
18071807
1808-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html>`_
1808+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-segments.html>`_
18091809
18101810
:param index: A comma-separated list of index names to limit the returned information
18111811
:param bytes: The unit in which to display byte values
@@ -1885,7 +1885,7 @@ async def shards(
18851885
"""
18861886
Provides a detailed view of shard allocation on nodes.
18871887
1888-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html>`_
1888+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-shards.html>`_
18891889
18901890
:param index: A comma-separated list of index names to limit the returned information
18911891
:param bytes: The unit in which to display byte values
@@ -1965,7 +1965,7 @@ async def snapshots(
19651965
"""
19661966
Returns all snapshots in a specific repository.
19671967
1968-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html>`_
1968+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-snapshots.html>`_
19691969
19701970
:param repository: Name of repository from which to fetch the snapshot information
19711971
:param format: Specifies the format to return the columnar data in, can be set
@@ -2046,7 +2046,7 @@ async def tasks(
20462046
Returns information about the tasks currently executing on one or more nodes
20472047
in the cluster.
20482048
2049-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html>`_
2049+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/tasks.html>`_
20502050
20512051
:param actions: A comma-separated list of actions that should be returned. Leave
20522052
empty to return all.
@@ -2129,7 +2129,7 @@ async def templates(
21292129
"""
21302130
Returns information about existing templates.
21312131
2132-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html>`_
2132+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-templates.html>`_
21332133
21342134
:param name: A pattern that returned template names must match
21352135
:param format: Specifies the format to return the columnar data in, can be set
@@ -2209,7 +2209,7 @@ async def thread_pool(
22092209
Returns cluster-wide thread pool statistics per node. By default the active,
22102210
queue and rejected statistics are returned for all thread pools.
22112211
2212-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html>`_
2212+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-thread-pool.html>`_
22132213
22142214
:param thread_pool_patterns: List of thread pool names used to limit the request.
22152215
Accepts wildcard expressions.
@@ -2339,7 +2339,7 @@ async def transforms(
23392339
"""
23402340
Gets configuration and usage information about transforms.
23412341
2342-
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-transforms.html>`_
2342+
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.9/cat-transforms.html>`_
23432343
23442344
:param transform_id: The id of the transform for which to get stats. '_all' or
23452345
'*' implies all transforms

0 commit comments

Comments
 (0)