REST API knowledge exchange
mwiles
Service Provider
Posts: 19 Liked: 4 times
Joined: Jun 12, 2019 9:00 pm
Full Name: Michael Wiles
Contact:
Post
by mwiles » Oct 25, 2021 9:07 pm
1 person likes this post
in 11a, the api to create a new Veeam.Backup.Model.CVcdOrganization has changed, adding the hostID as a new param:
Code: Select all
changed from:
(guid hostid, Veeam.Backup.Model.CVcdRef orgRef, string orgName)
to:
(guid hostid, Veeam.Backup.Model.CVcdRef hostSiteUid, Veeam.Backup.Model.CVcdRef orgRef, string orgName)
I understand that the hostSiteUid is required with the new feature of supporting multiple vcd instances... my question is how can I get or create a well-formed Veeam.Backup.Model.CVcdRef with the correct Uid for this ?
oleg.feoktistov
Veeam Software
Posts: 2010 Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:
Post
by oleg.feoktistov » Oct 27, 2021 5:23 pm
4 people like this post
Hi Michael,
Since hostSiteUid is just an uid in urn:vcloud:site:guid format, you could get it either through vCloud Director API with
this request or Veeam Powershell Module with the code below:
Code: Select all
$server = Get-VBRServer -Name 'vCDName'
$siteRef = ($server.Info.Options | select-xml -XPath '/root/VcdConnectionOptions/LocalSiteUid').Node.InnerXml
And then make a CVcdRef object out of it:
Code: Select all
[Veeam.Backup.Model.CVcdRef]::Make($siteRef)
Thanks,
Oleg
mwiles
Service Provider
Posts: 19 Liked: 4 times
Joined: Jun 12, 2019 9:00 pm
Full Name: Michael Wiles
Contact:
Post
by mwiles » Oct 28, 2021 3:59 pm
this post
YES! that is exactly what we needed. Thank you @oleg.feoktistov
Users browsing this forum: ABI and 2 guests