Job API for EM

RESTful knowledge exchange

Job API for EM

Veeam Logoby Cathy » Tue 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?
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Job API for EM

Veeam Logoby v.Eremin » Tue 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.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

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

Veeam Logoby twesterd » Fri 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: never
Joined: Wed May 17, 2017 7:38 pm
Full Name: Trevor W

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

Veeam Logoby twesterd » Fri 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: never
Joined: Wed May 17, 2017 7:38 pm
Full Name: Trevor W

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

Veeam Logoby twesterd » Sun 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.
twesterd
Influencer
 
Posts: 17
Liked: never
Joined: Wed May 17, 2017 7:38 pm
Full Name: Trevor W

Re: Job API for EM

Veeam Logoby v.Eremin » Wed 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.
v.Eremin
Veeam Software
 
Posts: 13558
Liked: 1006 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

[MERGED] API to create new job

Veeam Logoby ethanballinger » Fri 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.
ethanballinger
Novice
 
Posts: 6
Liked: never
Joined: Fri Aug 18, 2017 3:43 pm
Full Name: Ethan Ballinger

Re: API to create new job

Veeam Logoby PTide » Mon 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
PTide
Veeam Software
 
Posts: 3140
Liked: 262 times
Joined: Tue May 19, 2015 1:46 pm


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests