Mengkueri status peningkatan komponen berdasarkan nama komponen. [_single.title](Deprecated) Kueri Status Peningkatan Komponen Kluster.
API ini telah ditinggalkan. Kami merekomendasikan migrasi ke CS(2015-12-15) - ListClusterAddonInstances 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:DescribeClusterAddonsUpgradeStatus |
get |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{ClusterId}/components/upgradestatus HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID Kluster. |
c23421cfa74454bc8b37163fd19af**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| componentIds |
array |
Yes |
Daftar nama komponen. |
|
|
string |
Yes |
Nama komponen. |
metric-server |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Badan respons. |
||
|
object |
The details of the component upgrade status. |
||
| addon_info |
object |
The component information. |
|
| component_name |
string |
The component name. |
cloud-controller-manager |
| version |
string |
The current version of the component. |
v1.9.3.340-g9830b58-aliyun |
| ready_to_upgrade |
string |
Indicates whether the component meets the upgrade conditions. Valid values:
|
true |
| tasks |
object |
The details of the upgrade task. |
|
| created_at |
string |
The time when the task was started. |
2020-12-28T17:00:50Z |
| finished_at |
string |
The time when the task was completed. |
2020-12-28T17:05:36Z |
| status |
string |
The status of the upgrade task. Valid values:
|
Success |
| is_canceled |
boolean |
Indicates whether the upgrade task is canceled. Valid values:
|
false |
Contoh
Respons sukses
JSONformat
{
"key": {
"addon_info": {
"component_name": "cloud-controller-manager",
"version": "v1.9.3.340-g9830b58-aliyun",
"ready_to_upgrade": "true"
},
"tasks": {
"created_at": "2020-12-28T17:00:50Z",
"finished_at": "2020-12-28T17:05:36Z",
"status": "Success",
"is_canceled": false
}
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.