RESTful knowledge exchange
Post Reply
spine
Service Provider
Posts: 12
Liked: never
Joined: Mar 13, 2019 8:33 pm
Full Name: Steven Pine
Contact:

List Job Type, ie Backup, Backup Copy, Replica

Post by spine »

Is there a easy way (or any way) in the api to see whether a job is a Backup, Backup Copy, or Replica?

Also is here a way to download the API documentation as a text file or some other format so I can search it locally?
DGrinev
Veteran
Posts: 1943
Liked: 247 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: List Job Type, ie Backup, Backup Copy, Replica

Post by DGrinev »

HI Steven,

In the resource menu at veeam.com you can visit Powershell reference guide, but it's available only in html format.
I think this one is what you're looking for - Get-VBRJob.
Take a look on the Sessions cmdlets, it might be helpful too.

Thanks!
benyoung
Veeam Vanguard
Posts: 148
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: List Job Type, ie Backup, Backup Copy, Replica

Post by benyoung »

I assume you are wanting to use a RESTful interface not powershell Steven given you have posted it here?

You can list the jobs on /jobs - https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
And you can make any additional queries to the /jobs/{Id} - https://helpcenter.veeam.com/docs/backu ... l?ver=95u4 and bring it together that way using the JobType member from memory with values of Backup and Replica

I dont have my environment available too confirm any of that

Another thing you may be able to do use the querySvc (https://helpcenter.veeam.com/docs/backu ... l?ver=95u4) and query by job type also
DGrinev
Veteran
Posts: 1943
Liked: 247 times
Joined: Dec 01, 2016 3:49 pm
Full Name: Dmitry Grinev
Location: St.Petersburg
Contact:

Re: List Job Type, ie Backup, Backup Copy, Replica

Post by DGrinev »

Apologize, you're right, I was focused on the Powershell by mistake.
spine
Service Provider
Posts: 12
Liked: never
Joined: Mar 13, 2019 8:33 pm
Full Name: Steven Pine
Contact:

Re: List Job Type, ie Backup, Backup Copy, Replica

Post by spine »

benyoung wrote: Mar 14, 2019 10:33 am I assume you are wanting to use a RESTful interface not powershell Steven given you have posted it here?

You can list the jobs on /jobs - https://helpcenter.veeam.com/docs/backu ... l?ver=95u4
And you can make any additional queries to the /jobs/{Id} - https://helpcenter.veeam.com/docs/backu ... l?ver=95u4 and bring it together that way using the JobType member from memory with values of Backup and Replica

I dont have my environment available too confirm any of that

Another thing you may be able to do use the querySvc (https://helpcenter.veeam.com/docs/backu ... l?ver=95u4) and query by job type also
Thank you! I found it under '/jobs/{id}?format=Entity' <Jobtype> text entry.
benyoung
Veeam Vanguard
Posts: 148
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: List Job Type, ie Backup, Backup Copy, Replica

Post by benyoung »

Awesome!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests