SearchDeletedExceptionRule

Prev Next

Available in VPC

Search for the desired item among deleted exception rules.

Request

This section describes the request format. The method and URI are as follows:

Method URI
POST /api/v1/deleted-exception-rules

Request headers

For information about the request headers common to all Webshell Behavior Detector APIs, see Webshell Behavior Detector request headers.

Request body

You can include the following data in the body of your request:

Field Type Required Description
createdTimeFrom Integer Optional Start date and time for searching the creation date of exception rules
  • Timestamp format
createdTimeTo Integer Optional End date and time for searching the creation date of exception rules
  • Timestamp format
deletedTimeFrom Integer Optional Start date and time for searching the deletion date of an exception rule
  • Timestamp format
deletedTimeTo Integer Optional End date and time for searching the deletion date of an exception rule
  • Timestamp format
exceptTarget String Optional Instance ID of exception target
exceptedRuleName String Optional Exception rule name
executor String Optional Process account
executorOfParent String Optional Parent process account
pageIndex Integer Required Page number
pageSize Integer Required Number of page outputs
processArg String Optional Process argument
processArgOfParent String Optional Parent process argument
processName String Optional Process name
processNameOfParent String Optional Parent process name

Request example

The request example is as follows:

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

This section describes the response format.

Response body

The response body includes the following data:

Field Type Required Description
success Boolean - Request handling status
code Integer - Response code
message String - Response message
result Object - Response result
content Array - Exception rule list: content
totalCount Integer - Number of response results
pageSize Integer - Number of page outputs
pageIndex Integer - Page number
totalPages Integer - Total number of pages

content

The following describes content.

Field Type Required Description
disabled Boolean - Whether exception rule is disabled
  • Display for sub account
  • true | false
    • true: Disabled
    • false: Enabled
actionName String - Action name of sub account
  • Display for sub account
permission Enum - Sub account permissions
  • Display for sub account
  • Allow | Deny
exceptedRuleId String - Exception rule ID
exceptedRuleName String - Exception rule name
exceptTargetType String - Exception target type
  • serverGroup | everyServer | server
    • serverGroup: Server group
    • everyServer: All servers
    • server: Specific server
exceptTarget String - Instance ID of exception target
exceptTargetName String - Name of exception target
processName String - Process name to compare
processNameCondition String - 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
processArg String - Process argument to compare
processArgCondition String - 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
executor String - Execution account to compare
executorCondition String - 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
processNameOfParent String - Name of parent process to compare
processNameOfParentCondition String - 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
processArgOfParent String - Name of parent process argument to compare
processArgOfParentCondition String - 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
executorOfParent String - Execution account of the parent process to compare
executorOfParentCondition String - 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
createdTime Integer - Exception rule creation date and time
  • Timestamp format
deletedTime Integer - Exception rule deletion date and time
  • Timestamp format
isDeleted Boolean - Deletion status of exception rule
  • true | false
    • true: Deleted
    • false: Not deleted
memo String - Notes
memberNo Integer - Member ID for VM usage
groupIsDeleted Boolean - Deletion status of server group
  • true | false
    • true: deleted
    • false: not deleted

Response status codes

For information about the response status codes common to all Webshell Behavior Detector APIs, see Webshell Behavior Detector response status codes.

Response example

The response example is as follows:

{
    "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
    }
}