REST API knowledge exchange
Post Reply
SmithJohn
Enthusiast
Posts: 47
Liked: never
Joined: Jan 31, 2013 3:36 am
Full Name: charles
Contact:

API. Delete restore point.

Post by SmithJohn »

One another question, could the api delete the restore point or the whole backup ?
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2802 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: DayNumberInMonth

Post by Vitaliy S. »

Hi Charles,

The only way to delete the restore point or the entire backup chain is to apply backup retention policy. This policy is forced at the end of each job run.

Thanks!
SmithJohn
Enthusiast
Posts: 47
Liked: never
Joined: Jan 31, 2013 3:36 am
Full Name: charles
Contact:

Re: API. Delete restore point.

Post by SmithJohn »

but could the api delete the backup job?
If delete the backup jobs, could the backup and the restore points in the backup job deleted?
SmithJohn
Enthusiast
Posts: 47
Liked: never
Joined: Jan 31, 2013 3:36 am
Full Name: charles
Contact:

Re: API. Delete restore point.

Post by SmithJohn »

I just want to confirm whether the below api could delete the backup job and the stored backups of this job. Thanks.

(DELETE) /jobs/{ID}/includes/{ID}
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: API. Delete restore point.

Post by veremin » 1 person likes this post

I believe the mentioned API call deletes a VM/VM container with the corresponding ID from the specified job. As the result, the specified VMs are not longer processed by the given job. So, this call has nothing to do with deleting either restore points or the whole job.

Thanks.
SmithJohn
Enthusiast
Posts: 47
Liked: never
Joined: Jan 31, 2013 3:36 am
Full Name: charles
Contact:

[MERGED] : any api to delete job and the backups?

Post by SmithJohn »

any api to delete job and the backups?
nefes
Veeam Software
Posts: 649
Liked: 170 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: any api to delete job and the backups?

Post by nefes »

Currently Job and RestorePoint deletion is not available neither via Enterprise Manager nor via RESTful API.
However you could utilize Powershell for such activity.
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: API. Delete restore point.

Post by veremin »

Hi, Charles, there haven't been any changes regarding job deletion API. So, the answers provided above are still valid; and the only thing you can achieve is to delete given VM/VM container from being processed by the backup job.

Thanks.
SmithJohn
Enthusiast
Posts: 47
Liked: never
Joined: Jan 31, 2013 3:36 am
Full Name: charles
Contact:

Re: API. Delete restore point.

Post by SmithJohn »

But there is API to disable the scheduled backup job like below? Could you please provide more details. Thanks.

Enable or disable the job: <Link Rel="ToggleScheduleEnabled" Href="http://localhost:9399/api/jobs/568c42ce ... uleEnabled"
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: API. Delete restore point.

Post by veremin »

Hi, Charles, what particular information you're looking for?

The jobs can be disabled/enabled using certain API. For instance, the API provided by you will disable the job that has "568c42ce-eb11-4140-92cf-39ab36712bf5" ID.

Also, you can disable or enable a job by sending the POST HTTP request to the job. The following POST HTTP request will disable the job with specified ID:

Code: Select all

POST http://<Enterprise-Manager>:9399/api/jobs/{ID}?action=toggleScheduleEnabled
Issued second time, this request will enable the given job back.

Thanks.
vmm
Service Provider
Posts: 15
Liked: never
Joined: Nov 23, 2015 10:09 am
Full Name: Marat Akhmetianov
Contact:

[MERGED] : Deleting a job with restore points using RESTful

Post by vmm »

Hi.

We have opened a case in Customer Support regarding having ability to delete a job with its restore points using Enterprise Manager RESTful API. Our programmers are using RESTful API to write a code and need to delete a job with its restore points for "old" customers. Customer Support team told that we need to write in this forum to make this feature request.

Thanks
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: API. Delete restore point.

Post by veremin »

We try to keep RESTful APIs more or less on feature par with Enterprise Manager. And neither of those solutions currently allows restore point and job deletion. So, for now it's expected behaviour.

Though, thank you for your feedback and feature request; much appreciated.
vcirrus
Novice
Posts: 5
Liked: never
Joined: Jul 28, 2016 2:57 am
Full Name: Mathew Quinn
Contact:

Re: API. Delete restore point.

Post by vcirrus »

I'd like to add my vote to be able to delete jobs, backups, and restore points via the API. Also perhaps a way to create a backup job without the need to clone an existing job.

The cloud connect APIs are much more fully featured so it would seem that filling out the feature set in the job/backup space is in line with the direction of providing a full-featured API.
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: API. Delete restore point.

Post by veremin »

A small note - Cloud Connect RESTful API is a bit different story. Being directly oriented to VCSPs (our main RESTful APIs consumers), it indeed has the same functionality as GUI has.

Though, your voice regarding enhancing our general APIs has been heard.

Thanks.
jvl
Enthusiast
Posts: 44
Liked: 1 time
Joined: Sep 09, 2014 1:12 pm
Full Name: jvl
Contact:

Re: API. Delete restore point.

Post by jvl »

any chance this will be reviewed? deleting restore points or jobs by RESTful API can be really useful for automation.
benyoung
Veeam Software
Posts: 149
Liked: 47 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: API. Delete restore point.

Post by benyoung »

Agreed!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest