Data Import 이력 조회

Prev Next

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

설명

클러스터의 Data Import 이력을 확인합니다.

요청

요청 URL

GET https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/import/getDataImportHistory/{service-group-instance-no}?pageNo={pageNo}&pageSize={pageSize} [수도권]
GET https://vpcsearchengine.apigw.gov-ntruss.com/api/krs-v2/import/getDataImportHistory/{service-group-instance-no}?pageNo={pageNo}&pageSize={pageSize} [남부권]

요청 헤더

헤더명 설명
x-ncp-apigw-timestamp 1970년 1월 1일 00:00:00 협정 세계시(UTC)부터의 경과 시간을 밀리초(Millisecond)로 나타내며
API Gateway 서버와 시간 차가 5분 이상 나는 경우 유효하지 않은 요청으로 간주
x-ncp-apigw-timestamp:{Timestamp}
x-ncp-iam-access-key 네이버 클라우드 플랫폼 포털에서 발급받은 Access Key ID 값
x-ncp-iam-access-key:{Account Access Key}
x-ncp-apigw-signature-v2 Access Key ID 값과 Secret Key로 암호화한 서명
x-ncp-apigw-signature-v2:{API Gateway Signature}
Content-Type Request body content type을 application/json으로 지정
Content-Type: application/json

요청 파라미터

파라미터 타입 필수 여부 설명
serviceGroupInstanceNo String Y Data Import 이력을 확인할 클러스터 번호
pageNo Integer N 페이지 번호 Default : 1
<예시> 1, 2
pageSize Integer N 페이지 사이즈Defatlt : 10
<예시> 10, 20

요청 예시

GET https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/import/getDataImportHistory/1714400?pageNo=1&pageSize=10
HOST: vpcsearchengine.apigw.gov-ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: zq0FrtlU8JZJi9esTK31bCQUNG3H+jo4CMjMkJDoWSc=
x-ncp-apigw-timestamp: 1593848345548
x-ncp-iam-access-key: 7fIvgFY428mtY6sY8maw
curl -X GET "https://vpcsearchengine.apigw.gov-ntruss.com/api/v2/import/getDataImportHistory/1714400?pageNo=1&pageSize=10" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "x-ncp-iam-access-key: 7fIvgFY428mtY6sY8maw" \
-H "x-ncp-apigw-timestamp: 1601971222179" \
-H "x-ncp-apigw-signature-v2: zrCelnR48AADdK/uh6Xe3yy468i8KpQoewYHUmeqYh4=" 

응답 파라미터

public class GetImportHistoryListResponseVo{
    List<ImportHistoryVo> importHistoryList;
    Integer currentPage;
    Boolean isFirst;
    Boolean isLast;
    Integer pageSize;
    Long totalCount;
    Integer totalPage;
}

public class ImportHistoryVo {
       Integer serviceGroupInstanceNo;
       String clusterName;
       String importStatus;
       String bucketName;
       String objectKey;
       Integer progress;
       Date actionStartDate;
       Date actionEndDate;
}

필드

파라미터명 타입 설명
importHistoryList List Import 이력
currentPage Integer 현재 page
isFirst Boolean first page 여부
isLast Boolean last page 여부
pageSize Integer page 크기
totalCount Long Cluster의 총 리스트 개수
totalPage Integer 총 page 수
serviceGroupInstanceNo Integer 클러스터 번호
clusterName String 클러스터 이름
importStatus String Import 상태
bucketName String 버킷 이름
objectKey String 파일 경로
progress Integer 진행 상황
actionStartDate Date Import 작업 시작 시간
actionEndDate Date Import 작업 종료 시간

응답 예시

{
  "code": 0,
  "message": "SUCCESS",
  "result": {
    "currentPage": 1,
    "isFirst": true,
    "isLast": true,
    "pageSize": 10,
    "totalCount": 2,
    "totalPage": 1,
    "importHistoryList": [
      {
        "serviceGroupInstanceNo": 2059506,
        "clusterName": "test-import",
        "importStatus": "complete",
        "bucketName": "test",
        "objectKey": "ses/test-import.json",
        "progress": 100,
        "actionStartDate": "2021-11-30 17:43:21",
        "actionEndDate": "2021-11-30 17:44:21"
      },
      {
        "serviceGroupInstanceNo": 2059506,
        "clusterName": "test-import",
        "importStatus": "complete",
        "bucketName": "test",
        "objectKey": "ses/test-import.json",
        "progress": 100,
        "actionStartDate": "2021-11-30 17:34:30",
        "actionEndDate": "2021-11-30 17:34:33"
      }
    ]
  },
  "requestId": "b39f8538-b177-4aa3-8231-360e424246b7"
}