REST - Reversed query?
-
I use the REST API to record my backup status to Grafana, and have noticed it just change after updating - it's an older one I use so haven't done so in a while.
I normally run the following query:
https://my-xo.mydomain.local/rest/v0/backups/logs?fields=id,status&filter=MY%20VM%20Deltas&limit=7This used to return the most recent backups, but now it seems to be returning the oldest. Is there a way I can reverse the query (e.g.
order by id descin some form). The oldest backup is0while my newest backup is161- I don't know if this was always the case? It could just be something I have done outside of XO.If it's not possible, is there a limitation or is it something that could be easily implemented?
Thanks!
-
@DustyArmstrong for now the rest api doesn't support server side sorting ( we don't have the memory budget to do this )
it will be improved in the future
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login