Mengambil daftar aturan self-healing.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ListAutoRepairPolicies |
none |
*Cluster
|
None | None |
Sintaks permintaan
GET /clusters/{cluster_id}/auto_repair_policies HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
ID Kluster. |
ce0da5a1d627e4e9e9f96cae8ad07**** |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
Tidak ada parameter yang diperlukan.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| items |
array<object> |
自愈规则。 |
|
|
array<object> |
自愈规则。 |
||
| name |
string |
自愈规则名称。 |
test |
| id |
string |
自愈规则 ID。 |
r-xxxxx |
| resource_type |
string |
自愈规则绑定的资源类型。 |
nodepool |
| resource_sub_type |
string |
自愈规则绑定的资源子类型。 |
ess |
| resource_ids |
array |
自愈规则绑定的资源列表。 |
|
|
string |
npxxxxx |
||
| rules |
array<object> |
自愈子规则列表。 |
|
|
array<object> |
|||
| incidents |
array<object> |
||
|
object |
|||
| name |
string |
Node.FaultNeedReboot.HOST |
|
| type |
string |
system |
|
| repair_procedure |
array<object> |
||
|
array<object> |
|||
| 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" } |
Contoh
Respons sukses
JSONformat
{
"items": [
{
"name": "test",
"id": "r-xxxxx",
"resource_type": "nodepool",
"resource_sub_type": "ess",
"resource_ids": [
"npxxxxx"
],
"rules": [
{
"incidents": [
{
"name": "Node.FaultNeedReboot.HOST",
"type": "system\n"
}
],
"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": "{\n\"drain_timeout\": \"30s\" \n}"
}
}
]
}
]
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.