API Explorer
API Explorer
Getting Started
Release Notes
Appliance Management
Application Data Management
Asset Management
Asset Metadata
Authentication and Authorization
Cloud Disaster Recovery
Copy Management
Credentials Management
File Level Restore
Inventory Source Management
Kubernetes Data Management
Licenses Management
Location Management
Log Management
Protection Policies
Recovery and Reuse Management
Remote Service
Search Clusters
Secrets Manager
Server Disaster Recovery
Storage Management
Telemetry Setting
User Security Management
Virtual Machine Data Management
Whitelist Management

Sort the result

In this tutorial, you can learn how to tailor responses according to your sorting requirements.

In PowerProtect Data Manager REST API, sorting is accomplished by using the query parameter orderby:

?orderby=<field-name-1> ASC,<field-name-2> DESC

For example, if you want to get the activities sorted by createTime in descending order and duration in ascending order:

curl --request GET \
  --url 'https://<your-ppdm-server>:8443/api/v2/activities?orderby=createTime%20DESC%2Cduration%20ASC' \
  --header 'authorization: Bearer <access-token>'

Each field that can be sorted within a response is marked as x-ppdm-sort:true in the API specification document.