Reference Guide

Comparator Description Applicable data
types
Example
True if either the value of size is greater
than 50 MB or the value of
performance_policy is High or both.
Sorting response data
Use the order request parameter to specify sort criteria for one attribute in a list of resources returned by a collection query.
The order parameter works like an SQL Order By clause. You can specify one of these sort orders for the attribute:
asc: (Default) Sorts the response data in ascending order.
desc: Sorts the response data in descending order.
Sorting is case insensitive for any property called name.
Syntax
As the first parameter on the request URI: ?order=<order_expr>
As a subsequent parameter on the request URI: &order=<order_expr>
where <order_expr> is defined by the following syntax:
prop_expr1[.asc|.desc],[prop_expr2[.asc|.desc]...
where:
prop_expr1 and prop_expr2 are attribute names that are defined for the resource being queried.
asc and desc are case insensitive.
Retrieving values for all alerts, sorted by state
The following request retrieves values for the id, description, and alert_state attributes for all alert instances and sorts
this information by alert_state in ascending order.
Headers
Accept: application/json
Authorization: <auth_cookie>
Request
GET https://1.2.3.4/api/rest/alert?select=id,description_l10n,state&order=state
Response
body
[
{
"id": "1bf5e114-b476-492b-a37e-7d9c1b38e7b9",
"description_l10n": "Firmware version of the rights DAE PSU is no_errors.
Current firmware version is 09.16s.",
"state": "Active"
},
{
"id": "27f6caef-219a-406c-ad74-2ab801e56b19",
"description_l10n": "Firmware version of the tops DAE Controller is
no_errors. Current firmware version is 2.30.0s.",
"state": "Active"
},
{
"id": "0ed1b64a-91aa-444e-a832-cec924e41850",
"description_l10n": "Port state was changed from downs to ups.",
"state": "Cleared"
},
{
"id": "d406b80d-db51-4853-a835-23ed5512ae0d",
"description_l10n": "Port state was changed from downs to ups.",
30 Querying a resource