Get replicas by Id Deprecated
GET /replicas-id/{id}
This enpoint is deprecated, please use this one.
Returns file distribution information about a specific file.
Example cURL requests
Get file distribution map by Id
curl -X GET -H "X-Auth-Token: $TOKEN" \
"https://$HOST/api/v3/oneprovider/replicas-id/$FILE_ID"
[
{
"blocks": [ [ 0, 4 ], [ 10, 20 ] ],
"providerId": "57ecb305-a097-4243-bd03-a995e78ab206"
},
{
"blocks": [ [ 5, 9 ] ],
"providerId": "7dedd2c7-dc58-4e62-925e-94663faa70fc"
}
]
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string The Id of the file |
Request Examples
Shell
oneprovider-rest-cli getFileReplicasById id=$FILE_IDResponses
application/json
200
The list of file blocks stored at each provider.
No schema provided.
400
Invalid request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 403
Forbidden request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 404
Oneprovider REST API not available.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
} 500
Internal server error.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
application/json
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}