Sort the list result
In this tutorial, you will learn how to tailor responses according to your sorting requirements.
In PowerProtect DDMC REST API, sorting is accomplished by using the query parameter sort:
?sort=<field-name-1>,<field-name-2>
For descending order, prefix the key with a dash (-).
For example, if you want to get the users sorted by name in descending order, and by role in ascending order:
curl --request GET \
--header 'content-type: application/json' \
--header 'X-DD-AUTH-TOKEN: <auth-token>' \
--url 'https://<DDMC-SYSTEM-IP/FQDN>:3009/rest/v1.0/dd-systems/bb5bed4adc90eebb%3A4496a0e4def16e94/users?sort=-name%2Crole'