@@ -69,7 +69,8 @@ async def aliases(
69
69
70
70
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
71
71
72
- :param name: A comma-separated list of alias names to return
72
+ :param name: A comma-separated list of aliases to retrieve. Supports wildcards
73
+ (`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
73
74
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
74
75
that are open, closed or both.
75
76
:param format: Specifies the format to return the columnar data in, can be set
@@ -153,9 +154,9 @@ async def allocation(
153
154
154
155
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
155
156
156
- :param node_id: A comma -separated list of node IDs or names to limit the returned
157
- information
158
- :param bytes: The unit in which to display byte values
157
+ :param node_id: Comma -separated list of node identifiers or names used to limit
158
+ the returned information.
159
+ :param bytes: The unit used to display byte values.
159
160
:param format: Specifies the format to return the columnar data in, can be set
160
161
to `text`, `json`, `cbor`, `yaml`, or `smile`.
161
162
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -231,7 +232,8 @@ async def component_templates(
231
232
232
233
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233
234
234
- :param name: A pattern that returned component template names must match
235
+ :param name: The name of the component template. Accepts wildcard expressions.
236
+ If omitted, all component templates are returned.
235
237
:param format: Specifies the format to return the columnar data in, can be set
236
238
to `text`, `json`, `cbor`, `yaml`, or `smile`.
237
239
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -306,7 +308,9 @@ async def count(
306
308
307
309
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
308
310
309
- :param index: A comma-separated list of index names to limit the returned information
311
+ :param index: Comma-separated list of data streams, indices, and aliases used
312
+ to limit the request. Supports wildcards (`*`). To target all data streams
313
+ and indices, omit this parameter or use `*` or `_all`.
310
314
:param format: Specifies the format to return the columnar data in, can be set
311
315
to `text`, `json`, `cbor`, `yaml`, or `smile`.
312
316
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -386,8 +390,9 @@ async def fielddata(
386
390
387
391
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
388
392
389
- :param fields: A comma-separated list of fields to return the fielddata size
390
- :param bytes: The unit in which to display byte values
393
+ :param fields: Comma-separated list of fields used to limit returned information.
394
+ To retrieve all fields, omit this parameter.
395
+ :param bytes: The unit used to display byte values.
391
396
:param format: Specifies the format to return the columnar data in, can be set
392
397
to `text`, `json`, `cbor`, `yaml`, or `smile`.
393
398
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -455,6 +460,9 @@ async def health(
455
460
] = None ,
456
461
pretty : t .Optional [bool ] = None ,
457
462
s : t .Optional [t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]] = None ,
463
+ time : t .Optional [
464
+ t .Union ["t.Literal['d', 'h', 'm', 'micros', 'ms', 'nanos', 's']" , str ]
465
+ ] = None ,
458
466
ts : t .Optional [bool ] = None ,
459
467
v : t .Optional [bool ] = None ,
460
468
) -> t .Union [ObjectApiResponse [t .Any ], TextApiResponse ]:
@@ -476,7 +484,8 @@ async def health(
476
484
:param s: List of columns that determine how the table should be sorted. Sorting
477
485
defaults to ascending and can be changed by setting `:asc` or `:desc` as
478
486
a suffix to the column name.
479
- :param ts: Set to false to disable timestamping
487
+ :param time: The unit used to display time values.
488
+ :param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
480
489
:param v: When set to `true` will enable verbose output.
481
490
"""
482
491
__path = "/_cat/health"
@@ -501,6 +510,8 @@ async def health(
501
510
__query ["pretty" ] = pretty
502
511
if s is not None :
503
512
__query ["s" ] = s
513
+ if time is not None :
514
+ __query ["time" ] = time
504
515
if ts is not None :
505
516
__query ["ts" ] = ts
506
517
if v is not None :
@@ -633,29 +644,30 @@ async def indices(
633
644
634
645
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
635
646
636
- :param index: A comma-separated list of index names to limit the returned information
637
- :param bytes: The unit in which to display byte values
638
- :param expand_wildcards: Whether to expand wildcard expression to concrete indices
639
- that are open, closed or both.
647
+ :param index: Comma-separated list of data streams, indices, and aliases used
648
+ to limit the request. Supports wildcards (`*`). To target all data streams
649
+ and indices, omit this parameter or use `*` or `_all`.
650
+ :param bytes: The unit used to display byte values.
651
+ :param expand_wildcards: The type of index that wildcard patterns can match.
640
652
:param format: Specifies the format to return the columnar data in, can be set
641
653
to `text`, `json`, `cbor`, `yaml`, or `smile`.
642
654
:param h: List of columns to appear in the response. Supports simple wildcards.
643
- :param health: A health status ("green", "yellow", or "red" to filter only indices
644
- matching the specified health status
655
+ :param health: The health status used to limit returned indices. By default,
656
+ the response includes indices of any health status.
645
657
:param help: When set to `true` will output available columns. This option can't
646
658
be combined with any other query string option.
647
- :param include_unloaded_segments: If set to true segment stats will include stats
648
- for segments that are not currently loaded into memory
659
+ :param include_unloaded_segments: If true, the response includes information
660
+ from segments that are not loaded into memory.
649
661
:param local: If `true`, the request computes the list of selected nodes from
650
662
the local cluster state. If `false` the list of selected nodes are computed
651
663
from the cluster state of the master node. In both cases the coordinating
652
664
node will send requests for further information to each selected node.
653
665
:param master_timeout: Period to wait for a connection to the master node.
654
- :param pri: Set to true to return stats only for primary shards
666
+ :param pri: If true, the response only includes information from primary shards.
655
667
:param s: List of columns that determine how the table should be sorted. Sorting
656
668
defaults to ascending and can be changed by setting `:asc` or `:desc` as
657
669
a suffix to the column name.
658
- :param time: The unit in which to display time values
670
+ :param time: The unit used to display time values.
659
671
:param v: When set to `true` will enable verbose output.
660
672
"""
661
673
if index not in SKIP_IN_PATH :
@@ -1399,6 +1411,7 @@ async def nodes(
1399
1411
h : t .Optional [t .Union [str , t .Union [t .List [str ], t .Tuple [str , ...]]]] = None ,
1400
1412
help : t .Optional [bool ] = None ,
1401
1413
human : t .Optional [bool ] = None ,
1414
+ include_unloaded_segments : t .Optional [bool ] = None ,
1402
1415
local : t .Optional [bool ] = None ,
1403
1416
master_timeout : t .Optional [
1404
1417
t .Union ["t.Literal[-1]" , "t.Literal[0]" , str ]
@@ -1412,14 +1425,16 @@ async def nodes(
1412
1425
1413
1426
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
1414
1427
1415
- :param bytes: The unit in which to display byte values
1428
+ :param bytes: The unit used to display byte values.
1416
1429
:param format: Specifies the format to return the columnar data in, can be set
1417
1430
to `text`, `json`, `cbor`, `yaml`, or `smile`.
1418
- :param full_id: Return the full node ID instead of the shortened version (default:
1419
- false)
1431
+ :param full_id: If `true`, return the full node ID. If `false`, return the shortened
1432
+ node ID.
1420
1433
:param h: List of columns to appear in the response. Supports simple wildcards.
1421
1434
:param help: When set to `true` will output available columns. This option can't
1422
1435
be combined with any other query string option.
1436
+ :param include_unloaded_segments: If true, the response includes information
1437
+ from segments that are not loaded into memory.
1423
1438
:param local: If `true`, the request computes the list of selected nodes from
1424
1439
the local cluster state. If `false` the list of selected nodes are computed
1425
1440
from the cluster state of the master node. In both cases the coordinating
@@ -1448,6 +1463,8 @@ async def nodes(
1448
1463
__query ["help" ] = help
1449
1464
if human is not None :
1450
1465
__query ["human" ] = human
1466
+ if include_unloaded_segments is not None :
1467
+ __query ["include_unloaded_segments" ] = include_unloaded_segments
1451
1468
if local is not None :
1452
1469
__query ["local" ] = local
1453
1470
if master_timeout is not None :
@@ -1632,12 +1649,13 @@ async def recovery(
1632
1649
1633
1650
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html>`_
1634
1651
1635
- :param index: Comma-separated list or wildcard expression of index names to limit
1636
- the returned information
1637
- :param active_only: If `true`, the response only includes ongoing shard recoveries
1638
- :param bytes: The unit in which to display byte values
1652
+ :param index: A comma-separated list of data streams, indices, and aliases used
1653
+ to limit the request. Supports wildcards (`*`). To target all data streams
1654
+ and indices, omit this parameter or use `*` or `_all`.
1655
+ :param active_only: If `true`, the response only includes ongoing shard recoveries.
1656
+ :param bytes: The unit used to display byte values.
1639
1657
:param detailed: If `true`, the response includes detailed information about
1640
- shard recoveries
1658
+ shard recoveries.
1641
1659
:param format: Specifies the format to return the columnar data in, can be set
1642
1660
to `text`, `json`, `cbor`, `yaml`, or `smile`.
1643
1661
:param h: List of columns to appear in the response. Supports simple wildcards.
0 commit comments