Evaluate QoS expression
Parses given QoS expression and evaluates it against the parameters of storages supporting the space. Returns the list of storages that match the expression. In case of invalid expression, returns an error with the parser report.
This operation requires space_manage_qos privilege.
Example cURL requests
Evaluate QoS expression
curl -X POST -H "X-Auth-Token: $TOKEN" \
-H "Content-type: application/json" \
-d "{"expression": "key = value"}" \
"https://$HOST/api/v3/oneprovider/spaces/$SPACE_ID/evaluate_qos_expression"
{
"matchingStorages": {
[{
"id": "$STORAGE_ID",
"name": "storage_name",
"providerId": "$PROVIDER_ID"
}]
}
Path parameters
| Parameter | Type & Description |
|---|---|
| sid required | string Space Id in which to evaluate QoS expression. |
Request body
QoS expression to be evaluated.
No schema provided.
Request Examples
key = valueResponses
The list of storages matching given QoS expression (objects containing basic storage details)
matchingStorages array of objects (StorageDetails)
Id of storage.
Name of storage.
Id of provider storage belongs to.
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."
}Oneprovider REST API not available.
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."
}