I'm exploring the API and noticed that for listing operations (specifically the /vms/list operation) supports providing sorting parameters. I can't find any information on the proper values for the sort_attribute key in the request. Has anyone used this and can shed some light for me?
Thanks
Solved
sort_attribute usage
Best answer by nogodan1234
You can specify sort attribute like below
"https://"Prism_Element_VIP":9440/PrismGateway/services/rest/v1/vms/?sortCriteria=vmName
Also you can find other detail from below API guide
https://portal.nutanix.com/#/page/docs/details?targetId=API-Ref-AOS-v510:man-rest-api-v1-u.html
Ctrl+F "sortCriteria"
Hope this clear your question
"https://"Prism_Element_VIP":9440/PrismGateway/services/rest/v1/vms/?sortCriteria=vmName
Also you can find other detail from below API guide
https://portal.nutanix.com/#/page/docs/details?targetId=API-Ref-AOS-v510:man-rest-api-v1-u.html
Ctrl+F "sortCriteria"
Hope this clear your question
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

