Sorting

Ops Center Protector REST API User Guide

Version
7.6.x
Audience
anonymous
Part Number
MK-99PRT005-06

When retrieving a list of resources it is possible to apply a sort order using the “order-by” parameter within the URL. This will order the data by a single property either ascending (ASC) or descending (DESC). The order keyword is required and failure to provide this will result in an error stating:

“Invalid order-by parameter. Invalid format”.

For example, retrieving the list of nodes ordered alphabetically by name:

https://localhost/API/:version/master/NodeManager/objects/Nodes/?order-by=name+ASC

Note: It is only possible to sort on a single supported property within any one request. Please refer to the API Reference Guide for further information.