Queries self-healing rules.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeAutoRepairPolicy |
none |
*Cluster
|
None | None |
Request syntax
GET /clusters/{cluster_id}/auto_repair_policies/{policy_id} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
No |
The ID of the cluster. |
c82e6987e2961451182edacd74faf**** |
| policy_id |
string |
No |
The ID of the auto repair policy. |
r-xxxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| name |
string |
The name of the auto-healing rule. |
test |
| id |
string |
The ID of the auto-healing rule. |
r-xxx |
| resource_type |
string |
The resource type that the auto-healing rule applies to. |
nodepool |
| resource_ids |
array |
The resource IDs that the auto-healing rule applies to. |
|
|
string |
The resource ID. |
npxxxxx |
|
| rules |
array<object> |
The auto-healing sub-rules. |
|
|
array<object> |
An auto-healing sub-rule. |
||
| incidents |
array<object> |
The detected faults. |
|
|
object |
A detected fault. |
||
| name |
string |
The name of the fault. |
Node.FaultNeedReboot.HOST |
| type |
string |
The type of the fault. |
system |
| repair_procedure |
array<object> |
The repair procedures. |
|
|
array<object> |
A repair procedure. |
||
| name |
string |
The name of the procedure. |
QuarantineGPU |
| intervention |
object |
The configuration for manual intervention. |
|
| enable |
boolean |
Specifies whether to enable manual approval. |
true |
| type |
string |
The type of manual approval. |
label |
| inquiring_label |
object |
The configuration of the inquiry label. When a repair procedure reaches this stage, ACK adds this label to the node and awaits your authorization to proceed. |
|
| key |
string |
The key of the label. |
k8s.aliyun.com/incident |
| value |
string |
The value of the label. |
inquiring |
| approved_label |
object |
The configuration of the approval label. Add this label to the node to authorize ACK to proceed with the repair. After the action is complete, ACK automatically removes both the inquiry and approval labels for this stage. Failure to add this label promptly will halt the repair procedure, potentially leaving the node in an unhealthy state. |
|
| key |
string |
The |
k8s.aliyun.com/incident |
| value |
string |
The value of the label. |
approved |
| config |
object |
The configuration parameters for the procedure. |
|
|
any |
The key-value pairs for the procedure configuration. |
"drain_timeout": "30s" |
|
| resource_sub_type |
string |
The resource subtype that the auto-healing rule applies to. |
ess |
Examples
Success response
JSON format
{
"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"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.