Mengkueri aturan self-healing.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeAutoRepairPolicy |
none |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{cluster_id}/auto_repair_policies/{policy_id} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
ID kluster. |
c82e6987e2961451182edacd74faf**** |
| policy_id |
string |
No |
ID aturan self-healing. |
r-xxxxxx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema tanggapan. |
||
| name |
string |
Nama aturan self-healing. |
test |
| id |
string |
ID aturan self-healing. |
r-xxx |
| resource_type |
string |
Tipe Sumber daya yang terikat pada aturan self-healing. |
nodepool |
| resource_ids |
array |
Daftar Sumber daya yang terikat pada aturan self-healing. |
|
|
string |
Sumber daya yang terikat pada aturan self-healing. |
npxxxxx |
|
| rules |
array<object> |
Daftar sub-aturan self-healing. |
|
|
array<object> |
Daftar sub-aturan self-healing. |
||
| incidents |
array<object> |
Daftar titik kegagalan yang teridentifikasi. |
|
|
object |
Daftar titik kegagalan yang teridentifikasi. |
||
| name |
string |
Node.FaultNeedReboot.HOST |
|
| type |
string |
system |
|
| repair_procedure |
array<object> |
Prosedur perbaikan. |
|
|
array<object> |
Prosedur perbaikan. |
||
| name |
string |
QuarantineGPU |
|
| intervention |
object |
||
| enable |
boolean |
true |
|
| type |
string |
label |
|
| inquiring_label |
object |
||
| key |
string |
k8s.aliyun.com/incident |
|
| value |
string |
inquiring |
|
| approved_label |
object |
||
| key |
string |
k8s.aliyun.com/incident |
|
| value |
string |
approved |
|
| config |
object |
||
|
any |
"drain_timeout": "30s" |
||
| resource_sub_type |
string |
Subtipe Sumber daya yang terikat pada aturan self-healing. |
ess |
Contoh
Respons sukses
JSONformat
{
"name": "test",
"id": "r-xxx",
"resource_type": "nodepool",
"resource_ids": [
"npxxxxx"
],
"rules": [
{
"incidents": [
{
"name": "Node.FaultNeedReboot.HOST",
"type": "system"
}
],
"repair_procedure": [
{
"name": "QuarantineGPU",
"intervention": {
"enable": true,
"type": "label",
"inquiring_label": {
"key": "k8s.aliyun.com/incident",
"value": "inquiring"
},
"approved_label": {
"key": "k8s.aliyun.com/incident",
"value": "approved"
}
},
"config": {
"key": "\"drain_timeout\": \"30s\" "
}
}
]
}
],
"resource_sub_type": "ess"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.