GetDeletedExceptionRule

Prev Next

VPC 환경에서 이용 가능합니다.

사용자에 의해 삭제된 예외 규칙 목록을 조회합니다.

요청

요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.

메서드 URI
GET /deleted-exception-rules

요청 헤더

Webshell Behavior Detector API에서 공통으로 사용하는 헤더에 대한 정보는 Webshell Behavior Detector 공통 헤더를 참조해 주십시오.

요청 쿼리 파라미터

파라미터에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
pageIndex Integer Optional 페이지 번호
pageSize Integer Optional 페이지 출력 개수

요청 예시

요청 예시는 다음과 같습니다.

curl --location --request GET 'https://wbd.apigw.gov-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'

응답

응답 형식을 설명합니다.

응답 바디

응답 바디에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
success Boolean - 요청 처리 여부
code Integer - 응답 코드
message String - 응답 메시지
result Object - 응답 결과
content Array - 예외 규칙 내역 목록
totalCount Integer - 응답 결과 개수
pageSize Integer - 페이지 출력 개수
pageIndex Integer - 페이지 번호
totalPages Integer - 총 페이지 개수

content

content에 대한 설명은 다음과 같습니다.

필드 타입 필수 여부 설명
disabled Boolean - 예외 규칙 비활성화 여부
  • 서브 계정일 경우 표시
  • true | false
    • true: 비활성
    • false: 활성
actionName String - 서브 계정의 액션 이름
  • 서브 계정일 경우 표시
permission Enum - 서브 계정의 권한
  • 서브 계정일 경우 표시
  • Allow | Deny
exceptedRuleId String - 예외 규칙 ID
exceptedRuleName String - 예외 규칙 이름
exceptTargetType String - 예외 대상 유형
  • serverGroup | everyServer | server
    • serverGroup: 서버 그룹
    • everyServer: 모든 서버
    • server: 특정 서버
exceptTarget String - 예외 대상의 인스턴스 ID
exceptTargetName String - 예외 대상의 이름
processName String - 비교할 프로세스 이름
processNameCondition String - 프로세스 이름의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
processArg String - 비교할 프로세스 인자
processArgCondition String - 프로세스 인자의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
executor String - 비교할 실행 계정
executorCondition String - 실행 계정의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
processNameOfParent String - 비교할 부모 프로세스 이름
processNameOfParentCondition String - 부모 프로세스 이름의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
processArgOfParent String - 비교할 부모 프로세스 인자
processArgOfParentCondition String - 부모 프로세스 인자의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
executorOfParent String - 비교할 부모 프로세스의 실행 계정
executorOfParentCondition String - 부모 프로세스 실행 계정의 비교 조건
  • EQUAL | NOT_USE | START | END
    • EQUAL: 정확히 일치
    • NOT_USE: 비교 조건을 사용하지 않음
    • START: 시작 문자열 일치
    • END: 마지막 문자열 일치
createdTime Integer - 예외 규칙 생성 일시(Timestamp)
deletedTime Integer - 예외 규칙 삭제 일시(Timestamp)
isDeleted Boolean - 예외 규칙 삭제 여부
  • true | false
    • true: 삭제됨
    • false: 삭제되지 않음
memo String - 메모
memberNo Integer - VM 사용 회원 번호
groupIsDeleted Boolean - 서버 그룹 삭제 여부
  • true | false
    • true: 삭제됨
    • false: 삭제되지 않음

응답 상태 코드

Webshell Behavior Detector API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Webshell Behavior Detector 공통 응답 상태 코드를 참조해 주십시오.

응답 예시

응답 예시는 다음과 같습니다.

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