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://$PROVIDER_HOST/api/v3/oneprovider/transfers/$TRANSFER_ID"
{
"type": "replication",
"userId": "admin",
"rerunId": null,
"effectiveJobTransferId": $TRANSFER_ID,
"spaceId": "6ec1a5413b6f4e2b01a5c85a8fd797e2",
"dataSourceType": "file",
"fileId": "00000000005CF4706775696423745F772D67686431633765446F4D76546D6F2D67575F3361737A7670486B477A7936587734507265584A7723394A4F355F5F396E4C31623031594576776E667431723230677767776C6B497031394E445F6E3868677873",
"filePath": "/space/tmp",
"transferStatus": "completed",
"effectiveJobStatus": "completed",
"replicationStatus": "completed",
"evictionStatus": "skipped",
"replicatingProviderId": "HICATChd8wzbFmB6qfGby9VN7MfdXgI1qC4pULGVm8Q",
"evictingProviderId": null,
"callback": null,
"filesToProcess": 1,
"filesProcessed": 1,
"filesReplicated": 1,
"filesEvicted": 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.
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.
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.
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",
"filePath": "/My Space 1/Dir2/file3.txt",
"transferStatus": "completed",
"effectiveJobStatus": "completed",
"replicationStatus": "completed",
"evictionStatus": "skipped",
"replicatingProviderId": "HICATChd8wzbFmB6qfGby9VN7MfdXgI1qC4pULGVm8Q",
"evictingProviderId": null,
"callback": null,
"filesToProcess": 1,
"filesProcessed": 1,
"filesReplicated": 1,
"filesEvicted": 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.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Forbidden request.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Transfer with provided Id was not found.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}Internal server error.
error object (ErrorJson) Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
ctx required object (ErrorJsonCtx) Technical information about error.
Technical information about error.
Timestamp in milliseconds.
Release version of a product, for example "25.1".
Identifier of a service instance — either Oneprovider Id or "onezone".
Domain of the service.
Build version of the service.
Short name of service.
Revision of onedata-errors repo, where the error is defined.
Module where the error occurred.
Line number in the module where the error occurred.
Example
{
"error": {
"id": "example",
"description": "This is an example error.",
"ctx": {
"timestamp": 1750762637248,
"serviceReleaseVersion": "25.1",
"serviceId": "a7ee2722915b8bf7fb064eb65087cc61ch9357",
"serviceDomain": "dev-oneprovider-krakow.default.svc.cluster.local",
"serviceBuildVersion": "231-g8d26f953c3",
"service": "opw",
"onedataErrorsRevision": "ca3af8cb",
"module": "metadata_req",
"line": 45
}
}
}