This commit is contained in:
John Bresnahan 2013-05-29 16:36:00 -10:00
parent 513e621a29
commit 83c6d6fd8e
1 changed files with 73 additions and 1 deletions

View File

@ -1,7 +1,79 @@
Stacatto REST API
=================
This document describes the current v1 Staccatto REST API
This document describes the current v1 Stacatto REST API
Data Types
----------
States
******
- STATE_NEW
- STATE_RUNNING
- STATE_CANCELING
- STATE_CANCELED
- STATE_ERRORING
- STATE_ERROR
- STATE_COMPLETE
- STATE_DELETED
Xfer Document Type
******************
* id : UUID
* source_url : string
The URL of the source of the data to be transferred.
* destination_url : string
The URL of the destination where the source URL will be copied.
* state : State
The current state of the transfer.
* progress : integer
The number of bytes safely transferred to the destination storage system
thus far.
* start_offset
The offset into the source data set from which the transfer will begin.
* end_offset : integer
The offset into the source data set at which the transfer will end.
* destination_options : JSON document
A JSON document that is defined by the transfer service protocol plugin
in use. That plugin is determined by the scheme portion of the
destination URL.
* source_options : JSON document
A JSON document that is defined by the transfer service protocol plugin
in use. That plugin is determined by the scheme portion of the
source URL.
Example::
{"start_offset": 0,
"id": "590edf8c-1b2b-44d0-af6a-d9190753b6eb",
"state": "STATE_NEW",
"progress": 0,
"end_offset": -1,
"source_url": "file:///bin/bash",
"destination_options": {},
"destination_url": "file:///tmp/ooo",
"source_options": {}}
List All Transfers
------------------