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

Get job detailed action and modify infrastructure.

Post by Cathy »

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?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Get job detailed action and modify infrastructure.

Post by veremin » 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.
Cathy
Influencer
Posts: 16
Liked: never
Joined: Jun 13, 2014 3:48 am
Full Name: Cathy Hu
Contact:

Re: Get job detailed action and modify infrastructure.

Post by Cathy »

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?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Get job detailed action and modify infrastructure.

Post by veremin »

You can get info about

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

Thanks.
Cathy
Influencer
Posts: 16
Liked: never
Joined: Jun 13, 2014 3:48 am
Full Name: Cathy Hu
Contact:

Re: Get job detailed action and modify infrastructure.

Post by Cathy »

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?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Get job detailed action and modify infrastructure.

Post by veremin »

You can add different descriptions to those credentials, such as vCenter#1, vCenter#2, and distinguish them, based on that. Thanks.
Cathy
Influencer
Posts: 16
Liked: never
Joined: Jun 13, 2014 3:48 am
Full Name: Cathy Hu
Contact:

Re: Get job detailed action and modify infrastructure.

Post by Cathy »

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.
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Get job detailed action and modify infrastructure.

Post by veremin »

Can you elaborate on why you need to have two completely identical credentials? Thanks.
Cathy
Influencer
Posts: 16
Liked: never
Joined: Jun 13, 2014 3:48 am
Full Name: Cathy Hu
Contact:

Re: Get job detailed action and modify infrastructure.

Post by Cathy »

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?
veremin
Product Manager
Posts: 20284
Liked: 2258 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Get job detailed action and modify infrastructure.

Post by veremin »

Then, why not to use the very same credentials for both vCenters? Or am I missing something obvious here? Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests