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 » Mar 13, 2019 9:34 pm

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
Veeam Software
Posts: 1819
Liked: 230 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 » Mar 14, 2019 10:25 am

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
Service Provider
Posts: 129
Liked: 35 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 » 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

DGrinev
Veeam Software
Posts: 1819
Liked: 230 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 » Mar 14, 2019 10:46 am

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 » Mar 14, 2019 4:57 pm

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
Service Provider
Posts: 129
Liked: 35 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 » Mar 14, 2019 7:33 pm

Awesome!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest