REST API knowledge exchange
Post Reply
Cathy
Influencer
Posts: 16
Liked: never
Joined: Jun 13, 2014 3:48 am
Full Name: Cathy Hu
Contact:

Job API for EM

Post by Cathy »

We are trying to use restful API to control backup jobs.
We can't create a job. But we could clone and modify the job.
However, it looks like we can't find suitable restful API to set:
1. retention policy.
2. VM retention.
3. backup mode. (incremental or reversed incremental.)

Does restful API support those features or we have to use powershell cmdlet to complete this setting?
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Job API for EM

Post by veremin »

These settings aren't configurable via Enterprise Manager. The situation is the same with RestAPI, since the general idea of RestAPI to provide similar functionality as EM does. Thanks.
twesterd
Influencer
Posts: 17
Liked: 3 times
Joined: May 17, 2017 7:38 pm
Full Name: Trevor W
Contact:

[MERGED] How to add Linked Job to Backup Copy Job?

Post by twesterd »

I have successfully cloned backup jobs and added/removed VMs from backup jobs. Now I need to do the equivalent with Backup Copy jobs. I understand that I am not adding a VM to a backup copy job, it would be a reference to the Backup Job.

How do I add a Backup Job reference to a Backup Copy job?
twesterd
Influencer
Posts: 17
Liked: 3 times
Joined: May 17, 2017 7:38 pm
Full Name: Trevor W
Contact:

Re: How to add Linked Job to Backup Copy Job?

Post by twesterd »

Is it even possible to create a Backup Copy job via the Restful API?
twesterd
Influencer
Posts: 17
Liked: 3 times
Joined: May 17, 2017 7:38 pm
Full Name: Trevor W
Contact:

Re: How to add Linked Job to Backup Copy Job?

Post by twesterd »

Looks like there are too many limitations, unsupported features in Veeam's Restful API. Switched over to PowerShell... clearly far superior with respect to supported features and capabilities.
veremin
Product Manager
Posts: 20406
Liked: 2298 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Job API for EM

Post by veremin »

You cannot create a backup copy job, using RESTful API. Neither can you modify its source settings.

PowerShell might serve you better in this case, since it's functionality is similar to functionality of VB&R, while RESTful APIs are tied closely to Enterprise Manager, and thus have certain limitations.

Thanks.
ethanballinger
Novice
Posts: 7
Liked: never
Joined: Aug 18, 2017 3:43 pm
Full Name: Ethan Ballinger
Contact:

[MERGED] API to create new job

Post by ethanballinger »

What is the API to create a new job? I might be missing it but I don't see anything in the documentation.

Use case: I have VM1 under policy1 and VM2 protected under policy2. I want to protect VM3 under policy3.

From the GUI, I'd just navigate to 'Jobs', select 'Create', and provide my specifications. When I tried calling POST /jobs I got a 405.
PTide
Product Manager
Posts: 6551
Liked: 765 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: API to create new job

Post by PTide »

Hi,

Currently there is no direct way to create a job via API, however you can clone an existing job, add VMs to the job, and edit job settings afterwards.

Thank you
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests