UpdateRuleGroup
- Print
- PDF
UpdateRuleGroup
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API edits an event rule.
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/ruleGrp/update
Method: POST
Request header
The request headers specified in common settings are required.
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request Body
Example
Request example
The example code below shows how to update an event rule. It edits the description for the event rule created by CreateRuleGroup and adds suspendRuleItems to deactivate the event rule of metricGroupItemId001 with the resourceId "123456".
POST /cw_fea/real/cw/api/rule/group/ruleGrp/update
Host: cw.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload:
{
"id": "eventRuleId001",
"groupName": "eventRule001",
"monitorGroupKey": [
"monitorGroupKey001"
],
"metricsGroupKey": [
"metricsGroupKey001"
],
"recipientNotifications": [
{
"groupName": "RecipientGroup001",
"groupNum": xx,
"notifyTypes": [
"SMS",
"EMAIL"
]
}
],
"groupDesc": "Edits an event rule.",
"suspendRuleItems": [
{
"resourceId": "123456",
"metricGroupItemId": "metricGroupItemId001"
}
],
"prodKey": "xxxxxxxxxxxxxxxxxx"
}
Response example
The API returns HTTP code 200 without any response body if the update is completed without any errors.
Was this article helpful?