DeleteMonitorGroupForce
    • PDF

    DeleteMonitorGroupForce

    • PDF

    Article summary

    Summary

    This API deletes all event rules related to a monitored target group.

    Request

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/monitor/groups
    Method: DELETE
    

    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 Parameters

    Parameter NameRequirement statusTypeRestrictionsDescription
    prodKeyYStringProduct's cw_key

    Request Body

    List<TypeGroupRelatedRuleDto>

    Example

    Request example

    DELETE /cw_fea/real/cw/api/rule/group/monitor/groups?prodKey=xxxxxxxxxxxxxxxxxx HTTP/1.1
    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: // You can send the request by inputting the response of GetRuleGroupByMonitorGroupIds (/rule/group/monitor/group/related) in the request body.
    [
        {
            "id": "monitorGroupId001",
            "ruleGroupItemDtoList": [
                {
                    "cfTriggers": [],
                    "createTime": 1589776027701,
                    "domainCode": "PUB",
                    "groupDesc": "Edits an event rule.",
                    "groupName": "EvnetRule001",
                    "id": "eventRuleId001",
                    "prodKey": "xxxxxxxxxxxxxxxxxx",
                    "recipientNotifications": [
                        {
                            "groupName": "RecipientGroup001",
                            "groupNum": xx,
                            "notifyTypes": [
                                "SMS",
                                "EMAIL"
                            ]
                        }
                    ],
                    "regionCode": "KR",
                    "ruleVersion": "V2",
                    "suspendRuleItems": [
                        {
                            "metricGroupItemId": "metricGroupItemId001",
                            "resourceId": "resourceId001"
                        }
                    ],
                    "updateTime": 1589778114663
                },
                {
                    "cfTriggers": [],
                    "createTime": 1589775745332,
                    "domainCode": "PUB",
                    "groupName": "EvnetRule002",
                    "id": "eventRuleId002",
                    "prodKey": "xxxxxxxxxxxxxxxxxx",
                    "recipientNotifications": [
                        {
                            "groupName": "RecipientGroup001",
                            "groupNum": xx,
                            "notifyTypes": [
                                "SMS",
                                "EMAIL"
                            ]
                        }
                    ],
                    "regionCode": "KR",
                    "ruleVersion": "V2",
                    "updateTime": 1589775745332
                }
            ]
        }
    ]
    
    

    Response example

    The API returns HTTP code 200 without any response body if the rules are deleted without any errors.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.