DeleteMonitorGroupForce
    • PDF

    DeleteMonitorGroupForce

    • PDF

    Article Summary

    概要

    監視対象グループに関連したすべてのEvent Ruleを削除します。

    リクエスト

    API URL

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

    リクエストヘッダ

    共通設定に明示されたリクエストヘッダが必要です。

    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}
    

    リクエストパラメータ

    パラメータ名必須有無タイプ制約事項説明
    prodKeyYString商品のcw_key

    リクエストボディ

    List<TypeGroupRelatedRuleDto>

    リクエスト例

    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: // GetRuleGroupByMonitorGroupIds (/rule/group/monitor/group/related)を通じて入手したレスポンスをリクエストボディとして入れてリクエストできます。
    [
        {
            "id": "monitorGroupId001",
            "ruleGroupItemDtoList": [
                {
                    "cfTriggers": [],
                    "createTime": 1589776027701,
                    "domainCode": "PUB",
                    "groupDesc": "イベントルールを修正します。",
                    "groupName": "EvnetRule001",
                    "id": "eventRuleId001",
                    "prodKey": "xxxxxxxxxxxxxxxxxx",
                    "recipientNotifications": [
                        {
                            "groupName": "通知対象者グループ001",
                            "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": "通知対象者グループ001",
                            "groupNum": xx,
                            "notifyTypes": [
                                "SMS",
                                "EMAIL"
                            ]
                        }
                    ],
                    "regionCode": "KR",
                    "ruleVersion": "V2",
                    "updateTime": 1589775745332
                }
            ]
        }
    ]
    
    

    レスポンス例

    エラーなしに削除が完了した場合、response bodyなしにHTTP code 200がリターンされます。


    この記事は役に立ちましたか?

    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.