cat 插件 API
编辑cat 插件 API
编辑cat API 仅供使用命令行或 Kibana 控制台的人员使用。它们不适用于应用程序使用。对于应用程序使用,请使用 节点信息 API。
返回集群中每个节点上运行的插件列表。
请求
编辑GET /_cat/plugins
查询参数
编辑-
format
- (可选,字符串)HTTP accept header 的简短版本。有效值包括 JSON、YAML 等。
-
h
- (可选,字符串)要显示的列名的逗号分隔列表。
-
help
- (可选,布尔值)如果为
true
,则响应包含帮助信息。默认为false
。 -
local
- (可选,布尔值)如果为
true
,则请求仅从本地节点检索信息。默认为false
,这意味着从主节点检索信息。 -
master_timeout
- (可选,时间单位)等待主节点的时间。如果在超时过期之前主节点不可用,则请求失败并返回错误。默认为
30s
。也可以设置为-1
表示请求永远不应超时。 -
s
- (可选,字符串)用于对响应进行排序的列名或列别名的逗号分隔列表。
-
v
- (可选,布尔值)如果为
true
,则响应包括列标题。默认为false
。
示例
编辑resp = client.cat.plugins( v=True, s="component", h="name,component,version,description", ) print(resp)
response = client.cat.plugins( v: true, s: 'component', h: 'name,component,version,description' ) puts response
const response = await client.cat.plugins({ v: "true", s: "component", h: "name,component,version,description", }); console.log(response);
GET /_cat/plugins?v=true&s=component&h=name,component,version,description
该 API 返回以下响应
name component version description U7321H6 analysis-icu 8.17.0 The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components. U7321H6 analysis-kuromoji 8.17.0 The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch. U7321H6 analysis-nori 8.17.0 The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch. U7321H6 analysis-phonetic 8.17.0 The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch. U7321H6 analysis-smartcn 8.17.0 Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch. U7321H6 analysis-stempel 8.17.0 The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch. U7321H6 analysis-ukrainian 8.17.0 The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch. U7321H6 discovery-azure-classic 8.17.0 The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism U7321H6 discovery-ec2 8.17.0 The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism. U7321H6 discovery-gce 8.17.0 The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism. U7321H6 mapper-annotated-text 8.17.0 The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index. U7321H6 mapper-murmur3 8.17.0 The Mapper Murmur3 plugin allows to compute hashes of a field's values at index-time and to store them in the index. U7321H6 mapper-size 8.17.0 The Mapper Size plugin allows document to record their uncompressed size at index time. U7321H6 store-smb 8.17.0 The Store SMB plugin adds support for SMB stores.