4.9 KiB
layout, title, parent, nav_order, has_children, redirect_from
| layout | title | parent | nav_order | has_children | redirect_from | |
|---|---|---|---|---|---|---|
| default | CAT plugins | CAT APIs | 50 | false |
|
CAT Plugins API
Introduced 1.0 {: .label .label-purple }
The CAT plugins operation lists the names, components, and versions of the installed plugins.
Endpoints
GET /_cat/plugins
Query parameters
The following table lists the available query parameters. All query parameters are optional.
| Parameter | Data type | Description | Default |
|---|---|---|---|
cluster_manager_timeout |
String | The amount of time allowed to establish a connection to the cluster manager node. | N/A |
format |
String | A short version of the 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
The following example request lists all installed plugins:
{% capture step1_rest %} GET /_cat/plugins?v {% endcapture %}
{% capture step1_python %}
response = client.cat.plugins( params = { "v": "true" } )
{% endcapture %}
{% include code-block.html rest=step1_rest python=step1_python %}
Example response
name component version
opensearch-node1 analysis-icu 3.3.2
opensearch-node1 opensearch-alerting 3.3.2.0
opensearch-node1 opensearch-anomaly-detection 3.3.2.0
opensearch-node1 opensearch-asynchronous-search 3.3.2.0
opensearch-node1 opensearch-cross-cluster-replication 3.3.2.0
opensearch-node1 opensearch-custom-codecs 3.3.2.0
opensearch-node1 opensearch-flow-framework 3.3.2.0
opensearch-node1 opensearch-geospatial 3.3.2.0
opensearch-node1 opensearch-index-management 3.3.2.0
opensearch-node1 opensearch-job-scheduler 3.3.2.0
opensearch-node1 opensearch-knn 3.3.2.0
opensearch-node1 opensearch-ml 3.3.2.0
opensearch-node1 opensearch-neural-search 3.3.2.0
opensearch-node1 opensearch-notifications 3.3.2.0
opensearch-node1 opensearch-observability 3.3.2.0
opensearch-node1 opensearch-security 3.3.2.0
opensearch-node1 opensearch-sql 3.3.2.0
Response columns
The following table lists all response columns. In the h and s query parameters, specify either the column name or its alias. To return this list from your cluster, send GET /_cat/plugins?help.
| Column | Alias | Description |
|---|---|---|
id |
- | The unique node identifier. |
name |
n |
The node name. |
component |
c |
The plugin component name. |
version |
v |
The plugin version. |
description |
d |
The plugin description and details. |
To display specific columns, use the h query parameter. The following example request returns only the node name, component, and version columns:
GET /_cat/plugins?v&h=name,component,version
{% include copy-curl.html %}
The response contains only the requested columns:
name component version
opensearch-node1 opensearch-alerting 3.8.0.0
opensearch-node1 opensearch-anomaly-detection 3.8.0.0
opensearch-node1 opensearch-asynchronous-search 3.8.0.0
...
The following example request uses column aliases to return the node ID, component, and plugin description:
GET /_cat/plugins?v&h=id,c,d
{% include copy-curl.html %}
The response contains the requested columns:
id c d
6It0uQ1AR06IDC4nMstPQw opensearch-alerting Amazon OpenSearch alerting plugin
6It0uQ1AR06IDC4nMstPQw opensearch-anomaly-detection OpenSearch anomaly detector plugin
6It0uQ1AR06IDC4nMstPQw opensearch-asynchronous-search Provides support for asynchronous search
...
Required permissions
If you use the Security plugin, make sure you have the appropriate permissions: cluster:monitor/nodes/info.