MENU
      UpdateRuleGroup
        • PDF

        UpdateRuleGroup

        • PDF

        記事の要約

        Classic/VPC環境で利用できます。

        Event Ruleを更新します。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        POST/cw_fea/real/cw/api/rule/group/ruleGrp/update

        リクエストヘッダ

        Cloud Insight APIで共通して使用されるヘッダの詳細は、Cloud Insightのリクエストヘッダをご参照ください。

        リクエストボディ

        リクエストボディ関連フィールドの詳細は、CreateOrUpdateRuleGroupDtoをご参照ください。

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location --request POST 'https://cw.apigw.ntruss.com/cw_fea/real/cw/api/rule/group/ruleGrp/update' \
        --header 'x-ncp-apigw-timestamp: {Timestamp}' \
        --header 'x-ncp-iam-access-key: {Access Key}' \
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
        --header 'Content-Type: application/json' \
        --data '{
            "id": "**********",
            "groupName": "server-test",
            "monitorGroupKey": [
                "**********"
            ],
            "metricsGroupKey": [
                "**********"
            ],
            "groupDesc": "サーバイベントルールを変更します。",
            "prodKey": "**********",
            "suspendRuleItems": [
                {
                    "resourceId": "**********",
                    "metricGroupItemId": "**********"
                }
            ],
            "recipientNotifications": [
                {
                    "groupName": "test-nr",
                    "groupNum": ****,
                    "notifyTypes": [
                        "SMS",
                        "EMAIL"
                    ]
                }
            ]
        }
        '
        Shell

        レスポンス

        レスポンス形式を説明します。

        レスポンスステータスコード

        NAVERクラウドプラットフォームで共通して使用されるレスポンスステータスコードの詳細は、Cloud Insight APIのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンス成功時、200 OKと表示され、Event Ruleが更新されます。


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

        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.