-
- Influencer
- Posts: 14
- Liked: 3 times
- Joined: Jan 14, 2021 8:01 am
- Full Name: Umesh Phendarkar
- Contact:
How to Get Only Failed Backup jobs Details from Restapi
How to Get Only Failed Backup jobs Details from Restapi ?
I need only Failed Backup jobs details, like Backup job ID and Server name and Result. Any lookup query for this ?
I need only Failed Backup jobs details, like Backup job ID and Server name and Result. Any lookup query for this ?
-
- VP, Product Management
- Posts: 27371
- Liked: 2799 times
- Joined: Mar 30, 2009 9:13 am
- Full Name: Vitaliy Safarov
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Hi Umesh,
Can you try running the second sample from Chris over here and then apply filtering options by status? Does it work for you?
Thanks!
Can you try running the second sample from Chris over here and then apply filtering options by status? Does it work for you?
Thanks!
-
- Influencer
- Posts: 14
- Liked: 3 times
- Joined: Jan 14, 2021 8:01 am
- Full Name: Umesh Phendarkar
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Hi Vitaliy,
Yes both the Search queries are working fine, i am getting the desired result, getting only failed Jobs. Thanks For Reply.. Really Appreciated.
Thanks..
Yes both the Search queries are working fine, i am getting the desired result, getting only failed Jobs. Thanks For Reply.. Really Appreciated.
Thanks..
-
- Influencer
- Posts: 14
- Liked: 3 times
- Joined: Jan 14, 2021 8:01 am
- Full Name: Umesh Phendarkar
- Contact:
[MERGED] How to Get Only Failed Back jobs in last 12 Hours with Restapi
I need to get the report for Failed Backup jobs which are failed in last 12 Hours or so.
Any Search filter for this ?
Any Search filter for this ?
-
- Veteran
- Posts: 1143
- Liked: 302 times
- Joined: Apr 27, 2020 12:46 pm
- Full Name: Natalia Lupacheva
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Hi @UmeshP,
moved your post to your original thread.
Did the suggested solution work for you?
Thanks!
moved your post to your original thread.
Did the suggested solution work for you?
Thanks!
-
- Influencer
- Posts: 14
- Liked: 3 times
- Joined: Jan 14, 2021 8:01 am
- Full Name: Umesh Phendarkar
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Hi Natalia,
Yes the suggested solution worked for me. However now i wanted to see reports for jobs which are Failed in last 12 Hours.
How i can mention time in query for last 12hours ?
Yes the suggested solution worked for me. However now i wanted to see reports for jobs which are Failed in last 12 Hours.
How i can mention time in query for last 12hours ?
-
- Veteran
- Posts: 1143
- Liked: 302 times
- Joined: Apr 27, 2020 12:46 pm
- Full Name: Natalia Lupacheva
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Umesh,
it should be something like
so the full query will be
You will need to change the value of EndTime parameter when you trigger this request.
Thanks!
it should be something like
Code: Select all
filter=EndTime>="2021-01-14T11:08:57.103Z";Result==failed
Code: Select all
/api/query?type=BackupJobSession&format=Entities&sortDesc=EndTime&pageSize=15&page=1&filter=EndTime%3E=%222021-01-14T11:08:57.103Z%22;Result==failed
Thanks!
-
- Influencer
- Posts: 14
- Liked: 3 times
- Joined: Jan 14, 2021 8:01 am
- Full Name: Umesh Phendarkar
- Contact:
Re: How to Get Only Failed Backup jobs Details from Restapi
Thanks Natalia.. Its Working ..Really Appreciated ..
Who is online
Users browsing this forum: No registered users and 2 guests