cat plugins API编辑

cat API 仅供人类通过命令行或 Kibana 控制台使用。它们*不*适用于应用程序。对于应用程序使用,请使用 节点信息 API

返回集群中每个节点上运行的插件列表。

请求编辑

GET /_cat/plugins

先决条件编辑

  • 如果启用了 Elasticsearch 安全功能,则您必须拥有 monitormanage 集群权限 才能使用此 API。

查询参数编辑

format
(可选,字符串)HTTP 接受标头 的简短版本。有效值包括 JSON、YAML 等。
h
(可选,字符串)要显示的列名称的逗号分隔列表。
help
(可选,布尔值)如果为 true,则响应包含帮助信息。默认为 false
local
(可选,布尔值)如果为 true,则请求仅从本地节点检索信息。默认为 false,这意味着从主节点检索信息。
master_timeout
(可选,时间单位)等待主节点的时间段。如果在超时到期之前主节点不可用,则请求失败并返回错误。默认为 30s。也可以设置为 -1 以指示请求永不超时。
s
(可选,字符串)用于对响应进行排序的列名称或列别名的逗号分隔列表。
v
(可选,布尔值)如果为 true,则响应包含列标题。默认为 false

示例编辑

response = client.cat.plugins(
  v: true,
  s: 'component',
  h: 'name,component,version,description'
)
puts response
GET /_cat/plugins?v=true&s=component&h=name,component,version,description

API 返回以下响应

name    component               version   description
U7321H6 analysis-icu            8.14.2 The ICU Analysis plugin integrates the Lucene ICU module into Elasticsearch, adding ICU-related analysis components.
U7321H6 analysis-kuromoji       8.14.2 The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into elasticsearch.
U7321H6 analysis-nori           8.14.2 The Korean (nori) Analysis plugin integrates Lucene nori analysis module into elasticsearch.
U7321H6 analysis-phonetic       8.14.2 The Phonetic Analysis plugin integrates phonetic token filter analysis with elasticsearch.
U7321H6 analysis-smartcn        8.14.2 Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.
U7321H6 analysis-stempel        8.14.2 The Stempel (Polish) Analysis plugin integrates Lucene stempel (polish) analysis module into elasticsearch.
U7321H6 analysis-ukrainian      8.14.2 The Ukrainian Analysis plugin integrates the Lucene UkrainianMorfologikAnalyzer into elasticsearch.
U7321H6 discovery-azure-classic 8.14.2 The Azure Classic Discovery plugin allows to use Azure Classic API for the unicast discovery mechanism
U7321H6 discovery-ec2           8.14.2 The EC2 discovery plugin allows to use AWS API for the unicast discovery mechanism.
U7321H6 discovery-gce           8.14.2 The Google Compute Engine (GCE) Discovery plugin allows to use GCE API for the unicast discovery mechanism.
U7321H6 mapper-annotated-text   8.14.2 The Mapper Annotated_text plugin adds support for text fields with markup used to inject annotation tokens into the index.
U7321H6 mapper-murmur3          8.14.2 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.14.2 The Mapper Size plugin allows document to record their uncompressed size at index time.
U7321H6 store-smb               8.14.2 The Store SMB plugin adds support for SMB stores.