Download Sanitized File
Description |
Download a file which was converted by the /file workflow API |
URL Path |
/file/converted/{data_id} |
Method |
GET |
Summary
Downloading file scanned from database using data_id
HTTP header parameters
apikey |
Only required if REST API keys have been defined |
OPTIONAL |
Method: GET
URL path |
/file/converted/{data_id} |
REQUIRED |
data_id |
Returned by Initiate Scan/Process a File |
REQUIRED |
Example: http://localhost:8008/metascan_rest/file/converted/012e1a8945c041d181e79ab8d711555d
Request Codes
200 |
OK |
|
400 |
Bad request |
Not supported HTTP method or invalid http request (e.g., empty body). |
401 |
Invalid API key |
Either missing API key or invalid api is passed. |
401 |
Exceeded usage |
|
500 |
Internal server error |
Server temporary unavailable. Try again later. |
Response
Example of when request is not successful :
{
err:
"DataID not found in the database"
}
Example of when request is successful :
It will return the content of that file if using rest client tool.
If using browser, a pop up save file will appear with the file name is the display_name in database. (This API sets the filename using the Content-Disposition)