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이 리턴됩니다.


    이 문서가 도움이 되었습니까?

    What's Next
    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.