SearchDeletedExceptionRule
    • PDF

    SearchDeletedExceptionRule

    • PDF

    Article summary

    Available in VPC

    Search for the desired item among deleted exception rules.

    Request

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

    MethodURI
    POST/deleted-exception-rules

    Request headers

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

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    createdTimeFromIntegerOptionalException rule creation date search start date and time (timestamp)
    createdTimeToIntegerOptionalException rule creation date search end date and time (timestamp)
    deletedTimeFromIntegerOptionalException rule deletion date search start date and time (timestamp)
    deletedTimeToIntegerOptionalException rule deletion date search end date and time (timestamp)
    exceptTargetStringOptionalInstance ID of exception target
    exceptedRuleNameStringOptionalException rule name
    executorStringOptionalProcess account
    executorOfParentStringOptionalParent process account
    pageIndexIntegerRequiredPage number
    pageSizeIntegerRequiredNumber of page outputs
    processArgStringOptionalProcess argument
    processArgOfParentStringOptionalParent process argument
    processNameStringOptionalProcess name
    processNameOfParentStringOptionalParent process name

    Request example

    The following is a sample request.

    curl --location --request POST 'https://wbd.apigw.ntruss.com/api/v1/deleted-exception-rules' \
    --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' \
    --data '{
        "createdTimeFrom": 1721736686000,
        "createdTimeTo": 1721736806000
    }'
    

    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": "2024072321114100000001",
                    "exceptedRuleName": "nks-php",
                    "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": 1721736701560,
                    "deletedTime": 1721736731627,
                    "isDeleted": true,
                    "memo": null,
                    "memberNo": 26***90,
                    "groupIsDeleted": null
                }
            ],
            "totalCount": 1,
            "pageSize": 20,
            "pageIndex": 0,
            "totalPages": 1
        }
    }
    

    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.