이 가이드는 API 명세를 기반으로 자동 생성했습니다.
Ncloud API 표준 규격을 적용한 API입니다.
로그 내보내기 작업 목록을 페이지 단위로 조회합니다.
사용자 정의 정렬은 지원하지 않습니다. 결과는 항상 startDateTime,desc 순으로 정렬됩니다.
- 필요 권한:
View/getExportHistoryList
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /api/v2/export-jobs |
요청 헤더
Cloud Log Analytics API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud Log Analytics 요청 헤더를 참조해 주십시오.
요청 쿼리 파라미터
요청 쿼리 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
pageNo |
Integer (int32) | Optional | 0부터 시작하는 페이지 번호. 페이징 중 데이터가 바뀌면 항목이 중복되거나 누락될 수 있음
|
pageSize |
Integer (int32) | Optional | 페이지당 반환되는 자원 수
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://fin-cloudloganalytics.beta-apigw.fin-ntruss.com/api/v2/export-jobs' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
응답
응답 형식을 설명합니다.
응답 헤더
Cloud Log Analytics API에서 공통으로 사용하는 헤더에 대한 정보는 Cloud Log Analytics 응답 헤더를 참조해 주십시오.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
pageNo |
Integer (int32) | - | 0부터 시작하는 페이지 번호
|
pageSize |
Integer (int32) | - | 요청한 페이지 크기
|
totalPages |
Integer (int32) | - | 전체 페이지 수
|
totalElements |
Integer (int32) | - | 조건에 맞는 전체 자원 수
|
exportJobs |
List<ExportJob> | - | 현재 페이지의 내보내기 작업 목록 |
ExportJob
로그 내보내기 작업
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
jobId |
String | - | 내보내기 작업 식별자. 호출 계정 안에서 유일함
|
startDateTime |
String (date-time) | - | 내보내기 작업이 시작된 일시
|
exportRequestType |
String | - | 내보내기 요청 방식
|
regionCode |
String | - | NCP 리전 코드
|
bucketName |
String | - | 내보내기 대상 Object Storage 버킷 이름
|
folderName |
String | null | - | 내보내기 대상 폴더 이름
|
logTypes |
List<String> | - | 내보낸 로그 유형 목록. ["all"]은 내보내기 시점에 수집 중인 모든 로그 유형을 의미
|
status |
String | - | 내보내기 작업 상태. PENDING과 PROCESSING은 전이 상태로 추가 요청 없이 다음 상태로 진행되며, COMPLETED와 FAILED는 최종 상태로 이후 작업이 변경되지 않음
|
progress |
Integer (int32) | - | 내보내기 진행률 값
|
error |
Object<Error> | Null | - | 표준 NCP 오류 객체 형식의 실패 원인. status가 FAILED일 때만 존재하며 그 밖의 상태에서는 nullerrorCode는 표준 코드로, 대상 버킷이 없으면 ResourceNotFound, 계정에 자동 내보내기용 API Access Key가 없으면 InvalidConfiguration, 버킷 쓰기가 허용되지 않으면 Forbidden, 결과가 너무 커서 내보낼 수 없으면 ResourceLimitExceeded, 내보내기가 너무 오래 실행되면 RequestTimeout, Object Storage에 파일을 업로드할 수 없으면 BadGateway, 저장된 로그를 읽을 수 없는 등 그 밖의 경우 InternalServerError일부 실패한 작업의 파일별 실패 내역은 errorLogTypes에 표시
|
logTypeCount |
Integer (int32) | - | 전체 로그 유형 수
|
logFileCount |
Integer (int32) | - | 전체 로그 파일 수
|
errorLogFileCount |
Integer (int32) | - | 실패한 로그 파일 수
|
successLogTypes |
List<String> | - | 오류 없이 내보낸 로그 유형 목록
|
errorLogTypes |
List<ExportLogTypeError> | - | 로그 유형별 내보내기 오류 목록
|
ExportLogTypeError
로그 유형 하나의 내보내기 오류 상세
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
logType |
String | - | 로그 유형
|
totalCount |
Integer (int32) | - | 해당 로그 유형의 파일 수
|
errorCount |
Integer (int32) | - | 해당 로그 유형의 실패한 파일 수
|
errorLogFiles |
List<ExportLogFileError> | - | 실패한 로그 파일 목록 |
ExportLogFileError
로그 파일 하나의 내보내기 오류 상세
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
fileName |
String | - | 로그 파일 이름
|
errorReason |
String | null | - | 로그 파일 내보내기가 실패한 사유
|
응답 상태 코드
호출에 실패하면 기본 오류 응답 형식의 응답 바디를 반환하며, 오류 코드는 error.errorCode 값입니다.
응답 상태 코드에 대한 설명은 다음과 같습니다.
| HTTP 상태 코드 | 코드 | 메시지 | 설명 |
|---|---|---|---|
| 200 | - | - | 내보내기 작업 목록 조회 성공 |
| 400 | InvalidParameter |
The specified parameter is invalid. |
쿼리 또는 경로 파라미터 값이 범위를 벗어났거나 형식이 잘못된 경우. fieldErrors의 필드 이름을 확인하고 값을 수정한 뒤 다시 요청 |
Cloud Log Analytics API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Cloud Log Analytics 응답 상태 코드를 참조해 주십시오.
응답 예시
응답 예시는 다음과 같습니다.
{
"pageNo": 0,
"pageSize": 10,
"totalPages": 49,
"totalElements": 482,
"exportJobs": [
{
"jobId": "PIwrGTWQ56lH2ZYy",
"startDateTime": "2026-10-02T02:00:45+09:00",
"exportRequestType": "AUTO",
"regionCode": "FKR",
"bucketName": "cla-export-bucket",
"folderName": "CLA/AutoExport/2026/10/01/",
"logTypes": [
"all"
],
"status": "COMPLETED",
"progress": 100,
"logTypeCount": 10,
"logFileCount": 221,
"errorLogFileCount": 0,
"successLogTypes": [
"ses_log",
"kube-audit",
"security_log",
"SYSLOG",
"Security",
"Application",
"System"
],
"error": null,
"errorLogTypes": []
},
{
"jobId": "NZ4oyRoVLZrJTPmQ",
"startDateTime": "2026-09-30T02:00:11+09:00",
"exportRequestType": "AUTO",
"regionCode": "FKR",
"bucketName": "cla-export-bucket",
"folderName": "CLA/AutoExport/2026/09/29/",
"logTypes": [
"all"
],
"status": "FAILED",
"progress": 90,
"logTypeCount": 8,
"logFileCount": 192,
"errorLogFileCount": 18,
"successLogTypes": [
"System"
],
"error": {
"errorCode": "BadGateway",
"message": "The server received an invalid response from an upstream service. Retry your request.",
"detail": "18 of 192 log files could not be uploaded to Object Storage; see errorLogTypes."
},
"errorLogTypes": [
{
"logType": "ses_log",
"totalCount": 24,
"errorCount": 1,
"errorLogFiles": [
{
"fileName": "ses_log_00.json.gz",
"errorReason": "Upload file to Object Storage failed"
}
]
}
]
}
]
}