MENU
      GetDeletedExceptionRule

        GetDeletedExceptionRule


        Article summary

        Available in VPC

        Get the list of exception rules deleted by the user.

        Request

        The following describes the request format for the endpoint. The request format is as follows:

        MethodURI
        GET/deleted-exception-rules

        Request headers

        For headers common to all Webshell Behavior Detector APIs, see Common Webshell Behavior Detector headers.

        Request query parameters

        The following describes the parameters.

        FieldTypeRequiredDescription
        pageIndexIntegerRequiredPage number
        pageSizeIntegerRequiredNumber of page outputs

        Request example

        The following is a sample request.

        curl --location --request GET 'https://wbd.apigw.ntruss.com/api/v1/deleted-exception-rules?pageIndex=0&pageSize=2' \
        --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' \
        --header 'X-NCP-USE_PLATFORM_TYPE: VPC'
        Shell

        Response

        The following describes the response format.

        Response body

        The following describes the response body.

        FieldTypeRequiredDescription
        successBoolean-Request handling status
        codeInteger-Response code
        messageString-Response message
        resultObject-Response result
        contentArray-List of exception rule history
        totalCountInteger-Number of response results
        pageSizeInteger-Number of page outputs
        pageIndexInteger-Page number
        totalPagesInteger-Total number of pages

        content

        The following describes content.

        FieldTypeRequiredDescription
        disabledBoolean-Whether exception rule is disabled
        • Display for sub account
        • true | false
          • true: disabled
          • false: enabled
        actionNameString-Action name of sub account
        • Display for sub account
        permissionEnum-Sub account permissions
        • Display for sub account
        • Allow | Deny
        exceptedRuleIdString-Exception rule ID
        exceptedRuleNameString-Exception rule name
        exceptTargetTypeString-Exception target type
        • serverGroup | everyServer | server
          • serverGroup: server group
          • everyServer: all servers
          • server: specific server
        exceptTargetString-Instance ID of exception target
        exceptTargetNameString-Name of exception target
        processNameString-Process name to compare
        processNameConditionString-Comparison condition of process name
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        processArgString-Process argument to compare
        processArgConditionString-Comparison condition of process argument
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        executorString-Execution account to compare
        executorConditionString-Comparison condition of execution account
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        processNameOfParentString-Name of parent process to compare
        processNameOfParentConditionString-Comparison condition of parent process name
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        processArgOfParentString-Name of parent process argument to compare
        processArgOfParentConditionString-Comparison condition of parent process argument
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        executorOfParentString-Execution account of the parent process to compare
        executorOfParentConditionString-Comparison condition of parent process execution account
        • EQUAL | NOT_USE | START | END
          • EQUAL: exact match
          • NOT_USE: comparision condition not used
          • START: start string match
          • END: end string match
        createdTimeInteger-Exception rule creation date and time (timestamp)
        deletedTimeInteger-Exception rule deletion date and time (timestamp)
        isDeletedBoolean-Deletion status of exception rule
        • true | false
          • true: deleted
          • false: not deleted
        memoString-Notes
        memberNoInteger-Member ID for VM usage
        groupIsDeletedBoolean-Deletion status of server group
        • true | false
          • true: deleted
          • false: not deleted

        Response status codes

        For response status codes common to all Webshell Behavior Detector APIs, see Common Webshell Behavior Detector response status codes.

        Response example

        The following is a sample example.

        {
            "success": true,
            "code": 0,
            "message": "success",
            "result": {
                "content": [
                    {
                        "disabled": false,
                        "actionName": null,
                        "permission": null,
                        "exceptedRuleId": "2024080714034600000005",
                        "exceptedRuleName": "excep-rule-3",
                        "exceptTargetType": "server",
                        "exceptTarget": "{target-instance-id}",
                        "exceptTargetName": "{target-name}",
                        "processName": "{process}",
                        "processNameCondition": "EQUAL",
                        "processArg": "{process-and-arguments}",
                        "processArgCondition": "EQUAL",
                        "executor": "www-data",
                        "executorCondition": "EQUAL",
                        "processNameOfParent": "{process}",
                        "processNameOfParentCondition": "EQUAL",
                        "processArgOfParent": "{process-and-arguments}",
                        "processArgOfParentCondition": "EQUAL",
                        "executorOfParent": "www-data",
                        "executorOfParentCondition": "EQUAL",
                        "createdTime": 1723007026658,
                        "deletedTime": 1723007047168,
                        "isDeleted": true,
                        "memo": null,
                        "memberNo": 26***90,
                        "groupIsDeleted": null
                    },
                    {
                        "disabled": false,
                        "actionName": null,
                        "permission": null,
                        "exceptedRuleId": "2024080714030700000003",
                        "exceptedRuleName": "excep-rule-1",
                        "exceptTargetType": "server",
                        "exceptTarget": "{target-instance-id}",
                        "exceptTargetName": "{target-name}",
                        "processName": "{process}",
                        "processNameCondition": "EQUAL",
                        "processArg": "{process-and-arguments}",
                        "processArgCondition": "EQUAL",
                        "executor": "www-data",
                        "executorCondition": "EQUAL",
                        "processNameOfParent": "{process}",
                        "processNameOfParentCondition": "EQUAL",
                        "processArgOfParent": "{process-and-arguments}",
                        "processArgOfParentCondition": "EQUAL",
                        "executorOfParent": "www-data",
                        "executorOfParentCondition": "EQUAL",
                        "createdTime": 1723006987534,
                        "deletedTime": 1723009178564,
                        "isDeleted": true,
                        "memo": "need update",
                        "memberNo": 26***90,
                        "groupIsDeleted": null
                    }
                ],
                "totalCount": 7,
                "pageSize": 2,
                "pageIndex": 0,
                "totalPages": 4
            }
        }
        JSON

        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.