You can call the UpdateContactGroupForAlert operation to specify a contact group for an alert rule in an ACK cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UpdateContactGroupForAlert |
update |
*Cluster
|
None | None |
Request syntax
POST /alert/{ClusterId}/alert_rule/contact_groups HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
No |
The cluster ID. You can call the ListCluster operation to query the cluster ID. |
ce7d08276f8a6422282c46272a84bxxxx |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| alert_rule_group_name |
string |
No |
The name of the alert contact group. |
sample |
| contact_group_ids |
array |
No |
The list of contact group IDs. |
|
|
integer |
No |
A contact group ID. |
12345 |
|
| cr_name |
string |
No |
The name of the container registry instance. |
sample |
| namespace |
string |
No |
The namespace in which the resource resides. |
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| status |
boolean |
The update status.
|
true |
| msg |
string |
The error message returned if the call fails. |
contact group illegal. |
Examples
Success response
JSON format
{
"status": true,
"msg": "contact group illegal."
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.