Quantcast
Channel: Azure Backup forum
Viewing all articles
Browse latest Browse all 2741

REST API - backupJobs operation: Filtering on backup dates doesn’t seem to be working

$
0
0

Hello

I am trying to get a list of jobs using the REST API’s backupJobs operation. It seems that if no filter is given, only the last 24 hours worth of jobs is returned. I would like to get all the jobs that started after a certain date and for this, I am using a filter similar to:

$filter=startTime%20ge%20datetime'2016-12-15T22:30:04Z'

I say “similar” because I have tried all sorts of ways to encode this query (‘+’ instead of %20, %3A instead of ‘:’, various formats for the time stamp), to no avail. I always end up with the jobs for the past 24 hours.

What is strange is that if I try to filter on the operation type (i.e. “backup”), then I get all the backups there are in the system (I only have backups for the past 2 months).

Here is an example of the query I use:

https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/LdrResourceGroup/providers/Microsoft.RecoveryServices/vaults/LdrVault/backupJobs?api-version=2016-08-10&$filter=startTime%20ge%20datetime'2016-12-15T22:30:04Z'

 Does anyone have an example of a backupJobs query with a timestamp filter that works?

 Thanks in advance,

 Laurent.


Viewing all articles
Browse latest Browse all 2741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>