UpdateRuleGroup
    • PDF

    UpdateRuleGroup

    • PDF

    Article Summary

    概要

    Event Ruleを修正します。

    リクエスト

    API URL

    URL: https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/ruleGrp/update
    Method: POST
    

    リクエストヘッダ

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

    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}
    

    リクエストボディ

    CreateOrUpdateRuleGroupDto

    リクエスト例

    以下は、Event Ruleを修正する例です。 CreateRuleGroupで作成したEvent Ruleのdescriptionを修正し、suspendRuleItemsを追加して「123456」というresourceIdのmetricGroupItemId001に対するイベントルールを無効化できます。

    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": "通知対象者グループ001",
                "groupNum": xx,
                "notifyTypes": [
                    "SMS",
                    "EMAIL"
                ]
            }
        ],
        "groupDesc": "イベントルールを修正します。",
        "suspendRuleItems": [
            {
                "resourceId": "123456",
                "metricGroupItemId": "metricGroupItemId001"
            }
        ],
        "prodKey": "xxxxxxxxxxxxxxxxxx"
    }
    
    

    レスポンス例

    エラーなしに修正が完了した場合、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.