RESTful 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 » Jul 08, 2014 9:56 am

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: 17075
Liked: 1475 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Job API for EM

Post by veremin » Jul 08, 2014 10:12 am

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 » May 26, 2017 4:43 pm

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 » May 26, 2017 11:12 pm

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 » May 28, 2017 2:16 am

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: 17075
Liked: 1475 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Job API for EM

Post by veremin » May 31, 2017 2:56 pm

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 » Aug 25, 2017 10:29 pm

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: 5349
Liked: 471 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: API to create new job

Post by PTide » Aug 28, 2017 11:05 am

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 1 guest