Maintain control of your Microsoft 365 data
Post Reply
Talom
Enthusiast
Posts: 43
Liked: 6 times
Joined: Oct 21, 2014 7:56 am
Contact:

REST API: Filter JobSessions by Time

Post by Talom »

Hello,
i'm using the following endpoint to retrieve the jobsessions for a Job. "/v5/Jobs/{jobId}/JobSessions"

This works fine but gives me all Job Sessions and i'm not sure how it will perform if there are a lot of sessions.
Is it possible to use a filter like ?filter=endTime>="{fromDate}" ?
I tried it but it seems like the API just ignores it.
BACKUP EAGLE® Developer
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: REST API: Filter JobSessions by Time

Post by Polina »

Hi,

Currently, such filtering is not supported for this call. I'll take it as a FR.

Thanks!
Talom
Enthusiast
Posts: 43
Liked: 6 times
Joined: Oct 21, 2014 7:56 am
Contact:

Re: REST API: Filter JobSessions by Time

Post by Talom »

Thanks Polina. That would be great.

In the meantime i have to deal with it. Do you know how long the retention period for JobSessions is?
BACKUP EAGLE® Developer
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: REST API: Filter JobSessions by Time

Post by Polina »

It depends on your current settings: https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=50
Talom
Enthusiast
Posts: 43
Liked: 6 times
Joined: Oct 21, 2014 7:56 am
Contact:

Re: REST API: Filter JobSessions by Time

Post by Talom »

Hi Polina,

can you give me an update about the FR?
If this will be implemented, it would be nice to query the Version or Buildnumber, so i can switch between filtered and non filtered Command.
BACKUP EAGLE® Developer
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: REST API: Filter JobSessions by Time

Post by Polina » 1 person likes this post

Hi Talom,

The upcoming v6 will allow filtering sessions from the most recent to the specified date.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests