Memanggil DescribeClusterAddonMetadata untuk mengkueri informasi versi komponen tertentu yang tersedia untuk klaster tertentu, termasuk versi komponen dan parameter yang dapat dikonfigurasi.
API ini telah ditinggalkan. Kami merekomendasikan migrasi ke CS(2015-12-15) - DescribeAddon guna memperoleh fungsionalitas yang lebih baik dan dukungan berkelanjutan. Meskipun API yang telah ditinggalkan ini masih dapat diakses sementara, tidak akan ada pembaruan atau perbaikan bug lebih lanjut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterAddonMetadata |
get |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{cluster_id}/components/{component_id}/metadata HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
ID Klaster |
c71d616e629ff40d5b42d7bb87770**** |
| component_id |
string |
Yes |
ID Komponen |
coredns |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| version |
string |
No |
Versi komponen |
1.8.4.1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Metadata versi komponen |
||
| name |
string |
Nama komponen |
coredns |
| version |
string |
Versi komponen |
1.8.4.1 |
| config_schema |
string |
Skema parameter komponen |
{\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\": \" |
Contoh
Respons sukses
JSONformat
{
"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}"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.