GetObject

Interface description

Download the file with specified fid.

Request Syntax

GET -o fileName GatewayURL/fid

Note: - o is optional in specifying the file name to be downloaded. If this item is ignored, the fid of this file will be used as the file name.

Request Header

KeyValue

Operation

download

cipher

the key used to decrypt the file

Don't forget to add your identity signature to the header.

Response

Response format: application/octet-stream, Response format for exception return status: application/json

Status codeMessageResponse description

400

InvalidHead.Operation

Wrong operation

403

BackingUp

Files are being backed up

404

NotFound

File not found

500

InternalError

Server internal error

Request example

Request to download the file with fid as c8a92e3b66ab1ecf1fba3b6355ce6e76a216d7b93b76097a9f2f2e20b3fc0761, and save the file with name as “samplefile”

# curl -X GET -o samplefile URL/fid -H "Operation: download"

Response example

Last updated