云容器引擎-查询集群插件版本元数据
接口功能介绍
调用该接口获取插件版本元数据。
接口约束
无
URI
GET /v1.1/ccse/clusters//plugins/
路径参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
clusterName | 是 | String | 集群名称 | ccse-demo | |
pluginName | 是 | String | 插件名称 | plugin_inst |
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
repository | 是 | String | 仓库名称 | plugins |
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池编码 | bb9fdb42056f11eda1610242ac110002 |
请求体body参数
无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 | 800 | |
message | String | 提示信息 | ||
returnObj | Object | 返回对象 | returnObj | |
error | String | 错误码 | CCSE_500 |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
name | String | 插件名称。 | demo-plugin | |
totalVersions | Integer | 版本数。 | 1 | |
icon | String | 插件icon。 | ||
latestVersion | String | 插件最新版本 | 0.1.0 | |
created | String | 创建时间 | 2023-11-11 11:11:11 | |
hubId | Long | 镜像服务实例ID。 | 10000 | |
repositoryId | Long | 仓库ID。 | 10000 | |
repositoryName | String | 镜像服务实例命名空间名称 | plugins | |
latestAppVersion | String | 模板APP最新版本 | 0.1.1 | |
canDelete | Boolean | 是否可删 | false | |
readme | String | readme | ||
description | String | 插件的描述 | ||
version | String | 插件版本 | 0.1.1 | |
kubeVersion | String | 要求的Kubernetes版本 | ||
keywords | Array of Strings | 关键字 | ||
home | String | 官方地址 | ||
sources | Array of Strings | 源地址 | ||
appType | String | 插件类型 | other | |
appVersion | String | 插件APP版本 | 0.1.0 | |
needSubscribe | Boolean | 是否需要订阅 | false | |
crNamespaceId | Long | cr命名空间ID | ||
crNamespaceName | String | cr命名空间名称 | ||
crRepositoryId | Long | cr仓库ID | ||
tenantId | Long | 租户ID |
枚举参数
无
请求示例
请求url
GET https://ccse-global.ctapi.ctyun.cn/v1.1/ccse/clusters/ccse-demo/plugins/ccse-monitor?repository=String
请求头header
{regionId:bb9fdb42056f11eda1610242ac110002}
请求体body
无
响应示例
{
"statusCode": 800,
"message": "获取指定插件ccse-monitor成功",
"returnObj": {
"name": "ccse-monitor",
"totalVersions": 4,
"icon": null,
"latestVersion": "0.1.4",
"created": "2023-08-08 11: 19: 53",
"hubId": 11,
"repositoryId": 122,
"repositoryName": "plugins",
"latestAppVersion": "0.1.0",
"canDelete": null,
"readme": null,
"description": "CCSE监控插件,为 CCSE 提供指标的观测能力",
"version": "0.1.4",
"kubeVersion": null,
"keywords": null,
"home": null,
"sources": null,
"appType": "other",
"appVersion": "0.1.0",
"needSubscribe": false,
"tenantId": null
}
}