获取默认和自定义插件列表
更新时间:2025-04-01
请求URI
POST /api/bes/cluster/plugin/info
请求头参数
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 是 | 区域 | bj |
请求体参数
请求体字段数据结构说明
参数名称 | 参数类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | String | 是 | 集群ID | 807521220013723648 |
响应体参数
响应体字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
success | Boolean | 操作是否成功 | true |
status | Integer | 状态码 | 200 |
result | Result |
Result字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
plugins | List |
自定义插件列表 | |
defaultPlugins | List |
系统默认插件列表 |
PluginsItem字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
moduleType | String | 模块类型 | es_node |
pluginDesc | String | 插件描述 | Baidu NLP中文分词插件 |
pluginName | String | 插件名称 | xxx.zip |
pluginStatus | String | 插件状态 | UNINSTALLED |
DefaultPluginsItem字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
moduleType | String | 模块类型 | es_node |
pluginDesc | String | 插件描述 | custom |
pluginName | String | 插件名称 | xxx.zip |
pluginStatus | String | 插件状态 | UNINSTALLED |
pluginOperation | PluginOperation | 插件操作 |
PluginOperation字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
enable | Boolean | 是否可操作 | true |
operation | String | 操作类型 | uninstall |
text | String | 操作名称 | 卸载 |
请求示例
Plain Text
1POST /api/bes/cluster/plugin/info
2<公共请求头>
3x-Region: bj
4
5
6{
7 "clusterId": "644734225693675520"
8}
响应示例
Plain Text
1HTTP/1.1 200 OK
2<公共响应头>
3
4{
5 "result" : {
6 "defaultPlugins" : [ {
7 "pluginDesc" : "custom",
8 "moduleType" : "es_node",
9 "pluginName" : "xxx.zip",
10 "pluginOperation" : {
11 "enable" : true,
12 "text" : "卸载",
13 "operation" : "uninstall"
14 },
15 "pluginStatus" : "UNINSTALLED"
16 }, {
17 "pluginDesc" : "custom",
18 "moduleType" : "es_node",
19 "pluginName" : "xxx.zip",
20 "pluginOperation" : {
21 "enable" : true,
22 "text" : "卸载",
23 "operation" : "uninstall"
24 },
25 "pluginStatus" : "UNINSTALLED"
26 } ],
27 "plugins" : [ {
28 "pluginDesc" : "Baidu NLP中文分词插件",
29 "moduleType" : "es_node",
30 "pluginName" : "xxx.zip",
31 "pluginStatus" : "UNINSTALLED"
32 }, {
33 "pluginDesc" : "Baidu NLP中文分词插件",
34 "moduleType" : "es_node",
35 "pluginName" : "xxx.zip",
36 "pluginStatus" : "UNINSTALLED"
37 } ]
38 },
39 "success" : true,
40 "status" : 200
41}
错误码
请参考通用错误码