Getting Started
Vdisk Devices
Auth
Stats Capacities
Alerts
Alerts Notifylists
Cloud Profiles
Cloud Unit
Data Movement Policy
Data Movement
Data Movement Stats Files
Data Movement Stats Mtrees
Data Movement Stats Recall
Managed Files
Filesys
Filesys Block Storage
Licenses
Mdtags
Mtrees
Mtrees Id Rlfiles
Mtrees Id Stats
Mtrees Id Stats Capacity
Mtree Id Stats Compressions
Networks
Network
Network Host Name Reset
Network Host Name
Network Domain Name Reset
Network Domain Name
Network Search Domain Reset
Network Search Domain
Network Dns Server Reset
Network Dns Server
Network Gateway Reset
Network Gateway
Network Gateway Static Ipv4
Network Gateway Static Ipv6
Network Interface
Network Interface Physical
Network Interface Vlan
Network Interface Alias
Network Nic
Cifs Shares
Ddboost
Ddboost Clients
Ddboost Storage Units
Ddboost Users
Nfs
Nfs Exports
Nfs Exports Id Clients
Nfs Exports Id Referrals
Vdisk Devgrps
Dd Systems
Vdisk Pools
Vdisk Stimgs
Repl Contexts
Scsitgt Access Groups
Scsitgt Endpoints
Scsitgt Initiators
Services
Services Asup
Services Asup Reset
Iscsi
Services License Server
Services Log
Mdtags Services
Services Ntp
Snmp
Settings
Tenant Units
Tenants
Snapshots
Stats
Stats Capacity
Comp Measurements Support Check
Comp Measurements
Stats File Replications
Filesys Stats
Stats Perf
Stats Performances Mtrees
Stats Systems File Replications
Stats Upgrades Schedules
Storage Disks
Support
Support Bundles
System
System Repl
System Space
Upgrades Schedules
Users
Users Id Pre Check
Config Template Audit
Config Template Audit History
Config Template Audit Schedule
Config Template
Config Templates Features
Config Template Apply
Profile Access Info
Resource Profile
Tasks
Filesys Object Store
Filesys Object Stores Aws
Cifs Auth

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'