DeleteMetricGroupForce
- Print
- PDF
DeleteMetricGroupForce
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Summary
This API deletes all event rules related to a monitored item group (template).
Request
API URL
URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/metric/groups
Method: DELETE
Request header
The request headers specified in common settings are required.
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Request Parameters
Parameter Name | Requirement status | Type | Restrictions | Description |
---|---|---|---|---|
prodKey | Y | String | Product's cw_key |
Request Body
List<TypeGroupRelatedRuleDto>
Example
Request example
DELETE /cw_fea/real/cw/api/rule/group/metric/groups?prodKey=xxxxxxxxxxxxxxxxxx
Host: cw.apigw.ntruss.com
x-ncp-apigw-signature-v2: {generated signature}
x-ncp-apigw-timestamp: {current timestamp}
x-ncp-iam-access-key: {your iam access key}
Payload: // You can send the request by inputting the response of GetRuleGroupByMetricGroupIds (/rule/group/metric/group/related) in the request body.
[
{
"id": "metricGroupId001",
"ruleGroupItemDtoList": [
{
"cfTriggers": [],
"createTime": 1589782581417,
"domainCode": "PUB",
"groupName": "EvnetRule001",
"id": "eventRuleId001",
"prodKey": "xxxxxxxxxxxxxxxxxx",
"recipientNotifications": [
{
"groupName": "RecipientGroup001",
"groupNum": xx,
"notifyTypes": [
"SMS",
"EMAIL"
]
}
],
"regionCode": "KR",
"ruleVersion": "V2",
"updateTime": 1589782581417
}
]
}
]
Response example
The API returns HTTP code 200 without any response body if the rules are deleted without any errors.
Was this article helpful?