目前該API接口已標(biāo)記為棄用,推薦使用替代API:CS(2015-12-15) - DescribeAddon。
調(diào)用DescribeClusterAddonMetadata查詢特定集群可使用的指定組件版本信息,包括組件版本、可配置參數(shù)等。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
下表是API對(duì)應(yīng)的授權(quán)信息,可以在RAM權(quán)限策略語(yǔ)句的Action
元素中使用,用來(lái)給RAM用戶或RAM角色授予調(diào)用此API的權(quán)限。具體說(shuō)明如下:
- 操作:是指具體的權(quán)限點(diǎn)。
- 訪問級(jí)別:是指每個(gè)操作的訪問級(jí)別,取值為寫入(Write)、讀取(Read)或列出(List)。
- 資源類型:是指操作中支持授權(quán)的資源類型。具體說(shuō)明如下:
- 對(duì)于必選的資源類型,用背景高亮的方式表示。
- 對(duì)于不支持資源級(jí)授權(quán)的操作,用
全部資源
表示。
- 條件關(guān)鍵字:是指云產(chǎn)品自身定義的條件關(guān)鍵字。
- 關(guān)聯(lián)操作:是指成功執(zhí)行操作所需要的其他權(quán)限。操作者必須同時(shí)具備關(guān)聯(lián)操作的權(quán)限,操作才能成功。
操作 | 訪問級(jí)別 | 資源類型 | 條件關(guān)鍵字 | 關(guān)聯(lián)操作 |
---|---|---|---|---|
cs:DescribeClusterAddonMetadata | get |
|
| 無(wú) |
請(qǐng)求語(yǔ)法
GET /clusters/{cluster_id}/components/{component_id}/metadata HTTP/1.1
請(qǐng)求參數(shù)
名稱 | 類型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
cluster_id | string | 是 | 集群 ID | c71d616e629ff40d5b42d7bb87770**** |
component_id | string | 是 | 組件 ID | coredns |
version | string | 否 | 組件版本 | 1.8.4.1 |
返回參數(shù)
示例
正常返回示例
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\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-prompt-message\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-validation-message\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-additional-tips\\\": \\\"<mds-key>\\\"\\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\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-validation-message\\\": \\\"<mds-key>\\\"\\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\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-validation-message\\\": \\\"<mds-key>\\\"\\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\\\": \\\"<mds-key>\\\",\\n \\\"x-ui-validation-message\\\": \\\"<mds-key>\\\"\\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}"
}
錯(cuò)誤碼
訪問錯(cuò)誤中心查看更多錯(cuò)誤碼。
變更歷史
變更時(shí)間 | 變更內(nèi)容概要 | 操作 |
---|---|---|
2024-04-23 | API 內(nèi)部配置變更,不影響調(diào)用 | 查看變更詳情 |
2024-01-12 | OpenAPI 變更為 deprecated,即將下線 | 查看變更詳情 |