调用DescribeClusterAddonMetadata查询特定集群可使用的指定组件版本信息,包括组件版本、可配置参数等。
目前该API接口已标记为弃用,推荐使用替代API:CS(2015-12-15) - DescribeAddon。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cs:DescribeClusterAddonMetadata |
get |
*Cluster
|
无 | 无 |
请求语法
GET /clusters/{cluster_id}/components/{component_id}/metadata HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| cluster_id |
string |
是 |
集群 ID |
c71d616e629ff40d5b42d7bb87770**** |
| component_id |
string |
是 |
组件 ID |
coredns |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| version |
string |
否 |
组件版本 |
1.8.4.1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
组件版本元数据 |
||
| name |
string |
组件名称 |
coredns |
| version |
string |
组件版本 |
1.8.4.1 |
| config_schema |
string |
组件参数 Schema |
{\n \"$schema\": \"https://json-schema.org/draft-07/schema#\",\n \"properties\": {\n \"controller\": {\n \"description\": \"\",\n \"properties\": {\n \"resources\": {\n \"properties\": {\n \"armsPrometheusOperator\": {\n \"properties\": {\n \"resources\": {\n \"properties\": {\n \"limits\": {\n \"properties\": {\n \"memory\": {\n \"description\": \"memory limit of arms prometheus operator\",\n \"type\": \"string\",\n \"pattern\": \"^[1-9][0-9]*(\\\\.\\\\d+)?(K|Ki|M|Mi|G|Gi|T|Ti)?$\",\n \"default\": \"500m\",\n \"x-ui-description\": \" |
示例
正常返回示例
JSON格式
{
"name": "coredns",
"version": "1.8.4.1",
"config_schema": "{\\n \\\"$schema\\\": \\\"https://json-schema.org/draft-07/schema#\\\",\\n \\\"properties\\\": {\\n \\\"controller\\\": {\\n \\\"description\\\": \\\"\\\",\\n \\\"properties\\\": {\\n \\\"resources\\\": {\\n \\\"properties\\\": {\\n \\\"armsPrometheusOperator\\\": {\\n \\\"properties\\\": {\\n \\\"resources\\\": {\\n \\\"properties\\\": {\\n \\\"limits\\\": {\\n \\\"properties\\\": {\\n \\\"memory\\\": {\\n \\\"description\\\": \\\"memory limit of arms prometheus operator\\\",\\n \\\"type\\\": \\\"string\\\",\\n \\\"pattern\\\": \\\"^[1-9][0-9]*(\\\\\\\\.\\\\\\\\d+)?(K|Ki|M|Mi|G|Gi|T|Ti)?$\\\",\\n \\\"default\\\": \\\"500m\\\",\\n \\\"x-ui-description\\\": \\\"\\\",\\n \\\"x-ui-prompt-message\\\": \\\"\\\",\\n \\\"x-ui-validation-message\\\": \\\"\\\",\\n \\\"x-ui-additional-tips\\\": \\\"\\\"\\n },\\n \\\"cpu\\\": {\\n \\\"description\\\": \\\"cpu limit of arms prometheus operator\\\",\\n \\\"type\\\": \\\"string\\\",\\n \\\"pattern\\\": \\\"^[1-9][0-9]*(m|\\\\\\\\.\\\\\\\\d+)?$\\\",\\n \\\"default\\\": \\\"1.0\\\",\\n \\\"x-ui-description\\\": \\\"\\\",\\n \\\"x-ui-validation-message\\\": \\\"\\\"\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n },\\n \\\"requests\\\": {\\n \\\"properties\\\": {\\n \\\"memory\\\": {\\n \\\"description\\\": \\\"memory request of arms prometheus operator\\\",\\n \\\"type\\\": \\\"string\\\",\\n \\\"pattern\\\": \\\"^[1-9][0-9]*(\\\\\\\\.\\\\\\\\d+)?(K|Ki|M|Mi|G|Gi|T|Ti)?$\\\",\\n \\\"default\\\": \\\"500m\\\",\\n \\\"x-ui-description\\\": \\\"\\\",\\n \\\"x-ui-validation-message\\\": \\\"\\\"\\n },\\n \\\"cpu\\\": {\\n \\\"description\\\": \\\"cpu request of arms prometheus operator\\\",\\n \\\"type\\\": \\\"string\\\",\\n \\\"pattern\\\": \\\"^[1-9][0-9]*(m|\\\\\\\\.\\\\\\\\d+)?$\\\",\\n \\\"default\\\": \\\"1.0\\\",\\n \\\"x-ui-description\\\": \\\"\\\",\\n \\\"x-ui-validation-message\\\": \\\"\\\"\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n }\\n },\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n }\\n },\\n \\\"title\\\": \\\"Values\\\",\\n \\\"type\\\": \\\"object\\\",\\n \\\"additionalProperties\\\": false\\n}"
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。