Get job detailed action and modify infrastructure.

RESTful knowledge exchange

Get job detailed action and modify infrastructure.

Veeam Logoby Cathy » Fri Sep 26, 2014 11:33 am

We want to use Veeam B&R to do something but can't find suitable restful API:(we hope to use restful API. If can't, we need to find suitable powershell cmds.)

1. In B&R, if we click one job history, we could see this task's detailed action(job start time, building vm list, vm size,..., Job finished time). Is there any restful API could get those detailed information of Restore/backup/replica/SureBackup?

2. We already added one vCenter into our B&R. If user change vCenter's user/pass, is there any restful api we could use to modify vCenter's user/pass in our EnterpriseManager?

3. We already have several restore point. We could delete unused restore points. However, is there any restful API we could use to "delete" related backup files on disk to free our storage?

4. Is there any restful API could add one BackupServer into EnterpriseManager?

If we don't have suitable API now, is there any powershell commands could work for those functions?
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Get job detailed action and modify infrastructure.

Veeam Logoby v.Eremin » Fri Sep 26, 2014 3:13 pm 1 person likes this post

1. Check /restoresessions out.

2. You can issue put request to the given credentials and change the password.

3. No.

4. No. Should be possible with version 8, though.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get job detailed action and modify infrastructure.

Veeam Logoby Cathy » Sun Sep 28, 2014 5:49 pm

About item 1, /restoresessions only could get [CreationTimeUTC], [EndTimeUTC], [State],...
But in Job Log, we could see:
2014/8/14 18:27:49 Success Job started at 2014/8/14 18:27:49
2014/8/14 18:28:25 Success Building VM list
2014/8/14 18:28:25 Success VM size: 16.0 GB
2014/8/14 18:28:25 Success Changed block stracking is enabled
.......
Any API could get all those informaiton?
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Get job detailed action and modify infrastructure.

Veeam Logoby v.Eremin » Mon Sep 29, 2014 7:40 am

You can get info about

- Backup sessions, using /backupsessions and /backuptaskssessions
- Restore sessions, using /restoresessions
- Replica sessions, using /replicasessions and /replicatasksessions

Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get job detailed action and modify infrastructure.

Veeam Logoby Cathy » Tue Oct 14, 2014 8:44 am

You can issue put request to the given credentials and change the password.


However, we can't find suitable information to link credentials to vCenter. If we add 2 vCenters into B&R. Both vCenter's accounts are administrator. How could we find this credential is for this vCenter?
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Get job detailed action and modify infrastructure.

Veeam Logoby v.Eremin » Fri Oct 17, 2014 6:59 am

You can add different descriptions to those credentials, such as vCenter#1, vCenter#2, and distinguish them, based on that. Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get job detailed action and modify infrastructure.

Veeam Logoby Cathy » Tue Oct 21, 2014 9:12 am

About credentials:: If we create one credential with "user"/"pass", we CAN'T create another credential with the same username and password("user"/"pass) by restful API and powershell cmdlet. If we do this, Veeam would reply us the original one's credential ID.
Is it right?

But I remember we could use B&R's UI to create several credentials with the same user/pass.
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Get job detailed action and modify infrastructure.

Veeam Logoby v.Eremin » Tue Oct 21, 2014 11:02 am

Can you elaborate on why you need to have two completely identical credentials? Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Get job detailed action and modify infrastructure.

Veeam Logoby Cathy » Wed Oct 22, 2014 6:15 am

We add 2 hosts(vCenter1 anc vCenter2) to Backup Server. And want to create credentials for each host. However, vCenter1 and vCenter2 have the same username and password. Or we should add something to describe that those 2 credentials belongs to different hosts?
Cathy
Influencer
 
Posts: 16
Liked: never
Joined: Fri Jun 13, 2014 3:48 am
Full Name: Cathy Hu

Re: Get job detailed action and modify infrastructure.

Veeam Logoby v.Eremin » Wed Oct 22, 2014 8:22 am

Then, why not to use the very same credentials for both vCenters? Or am I missing something obvious here? Thanks.
v.Eremin
Veeam Software
 
Posts: 13291
Liked: 973 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests