2.3 KiB
2.3 KiB
layout, title, parent, redirect_from, nav_order, has_children
| layout | title | parent | redirect_from | nav_order | has_children | |
|---|---|---|---|---|---|---|
| default | CAT cluster manager | CAT APIs |
|
30 | false |
CAT Cluster Manager API
Introduced 1.0 {: .label .label-purple }
The CAT cluster manager operation lists information that helps identify the elected cluster manager node.
Endpoints
GET /_cat/cluster_manager
Query parameters
The following table lists the available query parameters. All query parameters are optional.
| Parameter | Data type | Description | Default |
|---|---|---|---|
cluster_manager_timeout |
String | A timeout for connection to the cluster manager node. | N/A |
format |
String | A short version of the HTTP Accept header, such as json or yaml. Valid values are: cbor, json, smile, text, and yaml. |
text |
h |
List | A comma-separated list of column names to display. | N/A |
help |
Boolean | Returns help information. | false |
limit |
Integer | The maximum number of rows to return. Must be greater than 0. Applied after sorting (s). |
N/A |
local |
Boolean | Returns local information but does not retrieve the state from the cluster manager node. | false |
s |
List | A comma-separated list of column names or column aliases to sort by. | N/A |
v |
Boolean | Enables verbose mode, which displays column headers. | false |
Example request
{% capture step1_rest %} GET /_cat/cluster_manager?v {% endcapture %}
{% capture step1_python %}
response = client.cat.cluster_manager( params = { "v": "true" } )
{% endcapture %}
{% include code-block.html rest=step1_rest python=step1_python %}
Example response
id | host | ip | node
ZaIkkUd4TEiAihqJGkp5CA | 172.18.0.3 | 172.18.0.3 | opensearch-node2
Required permissions
If you use the Security plugin, make sure you have the appropriate permissions: cluster:monitor/state.