데이터 반입 이력 조회

Prev Next

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

데이터 반입 이력을 조회합니다.

요청

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

메서드 URI
GET /api/v2/import/getDataImportHistory/{serviceGroupInstanceNo} (수도권)
GET /api/krs-v2/import/getDataImportHistory/{serviceGroupInstanceNo} (남부권)

요청 헤더

Search Engine Service API에서 공통으로 사용하는 헤더에 대한 정보는 Search Engine Service 요청 헤더를 참조해 주십시오.

요청 경로 파라미터

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

필드 타입 필수 여부 설명
serviceGroupInstanceNo Integer Required 클러스터 인스턴스 번호

요청 쿼리 파라미터

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

필드 타입 필수 여부 설명
pageNo Integer Optional 페이지 번호
  • 1~N (기본값: 1)
pageSize Integer Optional 페이지 출력 수
  • 1~N (기본값: 10)

요청 예시

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

curl --location --request GET 'https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/import/getDataImportHistory/1037*****' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'

응답

응답 형식을 설명합니다.

응답 바디

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

필드 타입 필수 여부 설명
code Integer - 응답 코드
message String - 응답 메시지
result Object - 응답 결과
result.currentPage Integer - 현재 페이지 번호
result.isFirst Boolean - 첫 페이지 여부
  • true | false
    • true: 첫 페이지
    • false: 첫 페이지 아님
result.isLast Boolean - 마지막 페이지 여부
  • true | false
    • true: 마지막 페이지
    • false: 마지막 페이지 아님
result.pageSize Integer - 페이지 출력 수
result.totalCount Integer - 응답 결과 수
result.totalPage Integer - 전체 페이지 수
result.importHistoryList Array - 반입 이력 목록
requestId String - 요청에 대한 아이디
  • UUID 형식

result.importHistoryList

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

필드 타입 필수 여부 설명
serviceGroupInstanceNo Integer - 클러스터 인스턴스 번호
clusterName String - 클러스터 이름
importStatus String - 반입 진행 상태
  • complete | processing | stop | fail
    • complete: 완료
    • processing: 진행 중
    • stop: 중지
    • fail: 실패(오류)
bucketName String - 대상 버킷 이름
objectKey String - 데이터 파일 경로
progress Integer - 반입 진행률
actionStartDate String - 작업 시작 일시
  • yyyy-MM-dd HH:mm:ss 형식
actionEndDate String - 작업 완료 일시
  • yyyy-MM-dd HH:mm:ss 형식

응답 상태 코드

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

응답 예시

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

{
    "code": 0,
    "message": "SUCCESS",
    "result": {
        "currentPage": 1,
        "isFirst": true,
        "isLast": true,
        "pageSize": 10,
        "totalCount": 2,
        "totalPage": 1,
        "importHistoryList": [
            {
                "serviceGroupInstanceNo": 1037*****,
                "clusterName": "cluster001",
                "importStatus": "complete",
                "bucketName": "bk.c",
                "objectKey": "data/sample_data.json",
                "progress": 100,
                "actionStartDate": "2025-03-26 08:49:35",
                "actionEndDate": "2025-03-26 08:50:47"
            },
            {
                "serviceGroupInstanceNo": 1037*****,
                "clusterName": "cluster001",
                "importStatus": "complete",
                "bucketName": "bk.c",
                "objectKey": "data/db_metadata.json",
                "progress": 100,
                "actionStartDate": "2025-03-26 08:42:51",
                "actionEndDate": "2025-03-26 08:42:53"
            }
        ]
    },
    "requestId": "48c5002e-****-****-****-6e43987f34c8"
}