You can call the StopAlert operation to disable an alert rule or an alert rule set in the alert center of Container Service for Kubernetes (ACK).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:StopAlert |
update |
*Cluster
|
None | None |
Request syntax
POST /alert/{ClusterId}/alert_rule/stop HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. You can call the ListClusters operation to obtain cluster IDs. |
c7f9c85baee73452883b3299a0107**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| alert_rule_group_name |
string |
No |
The name of the alert rule group. |
sample |
| alert_rule_name |
string |
No |
The name of the alert rule. |
sample |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| status |
boolean |
The operation result. Valid values:
|
True |
| msg |
string |
The error message returned if the call fails. |
Success |
Examples
Success response
JSON format
{
"status": true,
"msg": "Success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.