获取默认和自定义插件列表
更新时间:2025-01-08
接口描述
获取默认和自定义插件列表
API调用地址
POST /api/bes/cluster/plugin/info
请求参数
Header 参数
参数名 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
x-Region | String | 是 | 区域 | bd |
Body 参数
参数名称 | 必填 | 类型 | 描述 | 示例值 |
---|---|---|---|---|
clusterId | 是 | String | 集群id,超过规定18位会返回500错误 | 572979545519558656 |
示例
{
"clusterId":"644734225693675520"
}
响应参数
参数 | 必填 | 类型 | 描述 | 示例值 |
---|---|---|---|---|
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 | 插件描述 | Baidu NLP中文分词插件 |
pluginName | String | 插件名称 | xxx.zip |
pluginStatus | String | 插件状态 | UNINSTALLED |
pluginOperation | PluginOperation | 插件操作 |
PluginOperation字段数据结构说明
参数名称 | 参数类型 | 描述 | 示例值 |
---|---|---|---|
enable | Boolean | 是否可操作 | true |
operation | String | 操作类型 | uninstall |
text | String | 操作名称 | 卸载 |
示例
{
"result" : {
"defaultPlugins" : [ {
"pluginDesc" : "custom",
"moduleType" : "es_node",
"pluginName" : "xxx.zip",
"pluginOperation" : {
"enable" : true,
"text" : "卸载",
"operation" : "uninstall"
},
"pluginStatus" : "UNINSTALLED"
}, {
"pluginDesc" : "custom",
"moduleType" : "es_node",
"pluginName" : "xxx.zip",
"pluginOperation" : {
"enable" : true,
"text" : "卸载",
"operation" : "uninstall"
},
"pluginStatus" : "UNINSTALLED"
} ],
"plugins" : [ {
"pluginDesc" : "Baidu NLP中文分词插件",
"moduleType" : "es_node",
"pluginName" : "xxx.zip",
"pluginStatus" : "UNINSTALLED"
}, {
"pluginDesc" : "Baidu NLP中文分词插件",
"moduleType" : "es_node",
"pluginName" : "xxx.zip",
"pluginStatus" : "UNINSTALLED"
} ]
},
"success" : true,
"status" : 200
}