Get Small File
Requestβ
GET /api/get_small_file
Descriptionβ
Through the file id, download the file in the small file manager.
Path parametersβ
None
Query parametersβ
-
token
The token of the cluster. It can be viewed in the file
doris-meta/image/VERSION
. -
file_id
The file id displayed in the file manager. The file id can be viewed with the
SHOW FILE
command.
Request bodyβ
None
Responseβ
< HTTP/1.1 200
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< Content-Disposition: attachment;fileName=ca.pem
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
... File Content ...
If there is an error, it returns:
{
"msg": "File not found or is not content",
"code": 1,
"data": null,
"count": 0
}
Examplesβ
-
Download the file with the specified id
GET /api/get_small_file?token=98e8c0a6-3a41-48b8-a72b-0432e42a7fe5&file_id=11002
Response:
< HTTP/1.1 200
< Vary: Origin
< Vary: Access-Control-Request-Method
< Vary: Access-Control-Request-Headers
< Content-Disposition: attachment;fileName=ca.pem
< Content-Type: application/json;charset=UTF-8
< Transfer-Encoding: chunked
... File Content ...