Get QoS summary for file or directory
Returns QoS summary for file or directory.
QoS summary contains information about effective QoS, which is calculated by merging
QoS requirements defined directly for file or directory with QoS requirements defined for all
its ancestors.
To lookup file Id using file path, please use this endpoint.
Example cURL requests
Get file QoS summary
curl -X GET -H "X-Auth-Token: $TOKEN" \
"https://$HOST/api/v3/oneprovider/data/$FILE_ID/qos_summary"
{
"requirements": [{"$QOS_REQ_ID": "pending"}],
"status": "pending"
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Id of the file or directory. |
Request Examples
oneprovider-rest-cli getFileQosSummary id=$FILE_IDResponses
QoS summary for file or directory.
| Property | Type & Description |
|---|---|
requirements object Mapping including all QoS requirements (Ids) that influence given file/directory and corresponding information of fulfillment status for this file/directory (fulfilled/pending/impossible). | |
status string Aggregated status of all QoS requirements for given file or directory. Enum: fulfilledpendingimpossible | |
Example
{
"requirements": {
"c84f669f9522c46976fee490d80651f0": "pending",
"22c46976fee490d80651f0c84f669f95": "fulfilled"
},
"status": "pending"
}Invalid request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Forbidden request.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}File or directory not found.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}Internal server error.
| Property | Type & Description |
|---|---|
error string Identifier representing internal error code. | |
error_description string Detailed error message. | |
Example
{
"error": "invalid_token",
"error_description": "Provided token could not be validated."
}