Get transfer status
Returns status of specific transfer.
This operation requires space_view_transfers privilege.
Example cURL requests
Get status of specific transfer
curl -H "X-Auth-Token: $TOKEN" -X GET "https://$HOST/api/v3/oneprovider/transfers/$TRANSFER_ID"
{
"type": "replication",
"userId": "admin",
"rerunId": null,
"effectiveJobTransferId": $TRANSFER_ID,
"spaceId": "6ec1a5413b6f4e2b01a5c85a8fd797e2",
"dataSourceType": "file",
"fileId": "00000000005CF4706775696423745F772D67686431633765446F4D76546D6F2D67575F3361737A7670486B477A7936587734507265584A7723394A4F355F5F396E4C31623031594576776E667431723230677767776C6B497031394E445F6E3868677873",
"path": "/space/tmp",
"filePath": "/space/tmp",
"transferStatus": "completed",
"effectiveJobStatus": "completed",
"replicationStatus": "completed",
"replicaEvictionStatus": "skipped",
"evictionStatus": "skipped",
"replicatingProviderId": "HICATChd8wzbFmB6qfGby9VN7MfdXgI1qC4pULGVm8Q",
"evictingProviderId": null,
"callback": null,
"filesToProcess": 1,
"filesProcessed": 1,
"filesReplicated": 1,
"fileReplicasEvicted": 0,
"filesEvicted": 0,
"failedFiles": 0,
"filesFailed": 0,
"bytesReplicated": 10485760000,
"scheduleTime": 1504688800,
"startTime": 15046888765,
"finishTime": 1504688814,
"lastUpdate": 1504988814,
"minHist": {
"ASDxicvuisodr78w979879wer": [419430400, 1153433600, 1258291200, 1468006400, 1048576000, 1048576000, 1048576000, 1153433600, 629145600, 1258291200, 0, 0, 0, 0, 0, 0, 0, 0, 0]
},
"hrHist": {
"ASDxicvuisodr78w979879wer": [10485760000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
},
"dyHist": {
"ASDxicvuisodr78w979879wer": [10485760000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
},
"mthHist": {
"ASDxicvuisodr78w979879wer": [10485760000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
}
}
Path parameters
| Parameter | Type & Description |
|---|---|
| tid required | string Transfer Id. |
Request Examples
oneprovider-rest-cli getTransferStatus tid=$TRANSFER_IDResponses
Transfer status.
Requested type of transfer.
Id of the user that started the transfer.
If the transfer was rerun, this field contains the Id of the new transfer, otherwise null.
Last transfer Id in chain made of rerunId.
Id of space in context of which transfer was performed.
Indicates the method of determining files to be transferred.
type = "file" - this transfer covers a single file or a whole directory
(recursively). When scheduling such transfer, the user must have permissions to
access the file/directory.
type = "view" - this transfer covers files that are returned as a result of
querying chosen view. The view must be defined on all providers involved in
the process and querying it must return a valid list of file ids to be transferred.
For more information about views, please see
here.
Id of the transferred file or directory.
Path to the file or directory in the virtual file system. This field is deprecated and it might be removed in future release. Please refer to filePath.
Path to the file or directory in the virtual file system.
Name of the view that was queried to obtain the list of files to transfer.
queryViewParams object (QueryViewParams) View query attributes as provided by
Couchbase
View query attributes as provided by Couchbase
Return the documents in descending order (by key).
Return only documents that match the specified key. Key must be specified as a JSON value.
Limit the number of the returned documents to the specified number.
Skip this number of records before starting to return the results.
Return records with a value equal to or greater than the specified key. Key must be specified as a JSON value.
Return records starting with the specified document Id.
Stop returning records when the specified key is reached. Key must be specified as a JSON value.
Stop returning records when the specified document Id is reached.
Specifies whether the specified end key is included in the result. Note: Do not use inclusive_end with key or keys.
Allow records from a stale view to be used. Allowed values are ok, update_after or false.
Specify the bounding box for a spatial query (e.g. bbox=-180,-90,0,0)
Enable spatial type of query. When querying the file-popularity view,
the start_range and end_range constraints should be specified as
6-dimensional arrays, with the following fields:
[SizeLowerLimit, LastOpenHoursEpochLowerLimit, TotalOpenLowerLimit, HoursOpenAvgLowerLimit, DayOpenAvgLowerLimit, MonthOpenAvgLowerLimit].
Array specifying the range in spatial queries (e.g. start_range=[1,0,0,0,0,0]).
Array specifying the range in spatial queries
(e.g. end_range=[null,null,null,null,null,null]).
Overall status of transfer.
Overall status of effective transfer job (the last one in chain made of rerunId).
The status of transfer replication phase.
The status of transfer eviction phase. This field is deprecated and it might be removed in future release. Please refer to evictionStatus.
The status of transfer eviction phase.
Id of provider to which data was copied, ensuring that the provider has a complete replica at the end of the process.
Id of provider from which replica(s) were removed.
Optional callback URL, which will be invoked on transfer completion.
Total number of files in this transfer.
Number of files already processed.
Number of files already replicated.
Number of files already evicted. This field is deprecated and it might be removed in future release. Please refer to filesEvicted.
Number of files already evicted.
Number of files for which eviction or replication has failed.
This field is deprecated and it might be removed in future release.
Please refer to filesFailed.
Number of files for which eviction or replication has failed.
Number of bytes already replicated.
Schedule time in seconds (POSIX epoch timestamp).
Start time in seconds (POSIX epoch timestamp).
Finish time in seconds (POSIX epoch timestamp).
Last transfer update time in seconds (POSIX epoch timestamp).
Replication statistics within the last minute, per provider.
Replication statistics within the last hour, per provider.
Replication statistics within the last day, per provider.
Replication statistics within the last month, per provider.
Example
{
"type": "replication",
"userId": "admin",
"rerunId": null,
"effectiveJobTransferId": "c4798eb2dbd2486fae940e6fa0a5071d",
"spaceId": "6ec1a5413b6f4e2b01a5c85a8fd797e2",
"dataSourceType": "file",
"fileId": "00000000005CF4706775696423745F772D67686431633765446F4D76546D6F2D67575F3361737A7670486B477A7936587734507265584A7723394A4F355F5F396E4C31623031594576776E667431723230677767776C6B497031394E445F6E3868677873",
"path": "/My Space 1/Dir2/file3.txt",
"filePath": "/My Space 1/Dir2/file3.txt",
"transferStatus": "completed",
"effectiveJobStatus": "completed",
"replicationStatus": "completed",
"replicaEvictionStatus": "skipped",
"evictionStatus": "skipped",
"replicatingProviderId": "HICATChd8wzbFmB6qfGby9VN7MfdXgI1qC4pULGVm8Q",
"evictingProviderId": null,
"callback": null,
"filesToProcess": 1,
"filesProcessed": 1,
"filesReplicated": 1,
"fileReplicasEvicted": 0,
"filesEvicted": 0,
"failedFiles": 0,
"filesFailed": 0,
"bytesReplicated": 10485760000,
"scheduleTime": 1504688800,
"startTime": 15046888765,
"finishTime": 1504688814,
"lastUpdate": 1504988814,
"minHist": {
"ASDxicvuisodr78w979879wer": [
419430400,
1153433600,
1258291200,
1468006400,
1048576000,
1048576000,
1048576000,
1153433600,
629145600,
1258291200,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"hrHist": {
"ASDxicvuisodr78w979879wer": [
10485760000,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"dyHist": {
"ASDxicvuisodr78w979879wer": [
10485760000,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
},
"mthHist": {
"ASDxicvuisodr78w979879wer": [
10485760000,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
]
}
}Invalid request.
Identifier representing internal error code.
Detailed error message.
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Forbidden request.
Identifier representing internal error code.
Detailed error message.
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Transfer with provided Id was not found.
Identifier representing internal error code.
Detailed error message.
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Internal server error.
Identifier representing internal error code.
Detailed error message.
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}