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.
Mapping including all QoS requirements (Ids) that influence given file/directory and corresponding information of fulfillment status for this file/directory (fulfilled/pending/impossible).
Aggregated status of all QoS requirements for given file or directory.
Example
{
"requirements": {
"c84f669f9522c46976fee490d80651f0": "pending",
"22c46976fee490d80651f0c84f669f95": "fulfilled"
},
"status": "pending"
}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."
}File or directory 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."
}