RESTful knowledge exchange
Post Reply
Veeam Vanguard
Posts: 560
Liked: 219 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland

API query format - date range

Post by Cragdoo »


being a relative newcomer to the world of APIs, I was wondering if I could manipulate API queries to say list all successful backups in the last 24 hours

I've been using

Code: Select all

as a starter.

Some of the returned values are

Code: Select all

So is it possible to filter the results, just using one API call, using the ?filter ( ... tml?ver=95) to show only those backup sessions that have successfully completed in the previous 24 hours

Product Manager
Posts: 17851
Liked: 1665 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: API query format - date range

Post by veremin »

Sure, you need to utilize filter parameter combined with logical and comparison operators.

Take the following as a rough example:

Code: Select all

?filter=result=="Success";entime<"some date"

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest