Init a volume
POST /volumes/initialize
PUT /volumes/uploadfinish
Intialize a volume
Initialize with a remote source
Request:
Response:
JSON Parameters:
Name - The name of volume to be initialized.
Source - Source to be used to initialize the volume.
Status Codes:
200 - no error
400 - bad request
Initialize with a local source
Initializing a volume with local source is devided into three steps:
Ask to initialize
Upload data
Finish initialize
Ask to initialize
Request:
Response:
After receiving HTTP OK, you have at most 30 minutes to upload your data to destination http://0.1.2.3/data0
, using the provided cookie in application/x-tar
format.
Upload data
Request:
Query Parameters:
cookie: must match the cookie as returned in volume initialize response.
Response:
Finish initialize
Request:
Query Parameters:
Session: must match the session as returned in volume initialize response.
Response:
Status Codes:
200 - no error
400 - bad request
Last updated