Download CDR Declassification File
Download the file that has been sanitized.
On Successreturns a file binary stream,On FailureReturns an error message in JSON format.
Important Notes
- Prerequisite: mustStatus Inquiry API(
GET /v5/cdr/{jobID}response of )codea**0(Success)or1(Exception/Original Import)**It should only be called when __PH_0__.- Blocked Files: Files blocked by policy (
code: 2cannot be downloaded.- Expiration: Files that have exceeded the server's file retention period are automatically deleted and cannot be downloaded.
code: -2). A re-request is needed.
Method
GET
/v5/download/{jobID}
Request Path Parameter
KEY OBJECT DESC jobIDString Task ID to download (required)
Response
1. Success (File Download)
- Content-Type:
application/octet-stream- Body: Binary Data (File)
2. Failure (JSON Error Response)
- Content-Type:
application/json
KEY OBJECT DESC jobID String Work ID code int Result Code (see table below) msg String Result Message
Response Code (Failure Case)
CODE DESC DETAIL 5 Rejecting Invalid Requests In case of a bad request or lack of access permission 3 Decontamination in progress If you requested a download while it is still incomplete 2 File Blocking by Policy Blocked files cannot be downloaded. -1 Unknown error Unable to download due to internal server error -2 File not found Files that have been deleted due to expiration of the retention period or do not exist
Sample
REQUEST
curl -X GET "{{url}}/v5/download/test-job-001" -ORESPONSE - Success
- The file download will begin.
RESPONSE - Failure (Code: 2, Blocked File)
{
"jobID": "test-job-001",
"code": 2,
"msg": "정책에 의한 파일 차단으로 다운로드 불가"
}RESPONSE - Failure (Code: 3, In Progress)
{
"jobID": "test-job-001",
"code": 3,
"msg": "무해화가 진행중인 경우"
}