RESTful knowledge exchange
Post Reply
mwiles
Service Provider
Posts: 19
Liked: 4 times
Joined: Jun 12, 2019 9:00 pm
Full Name: Michael Wiles
Contact:

CVcdOrganization signature change

Post by mwiles » 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: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: CVcdOrganization signature change

Post by oleg.feoktistov » 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:

Re: CVcdOrganization signature change

Post by mwiles »

YES! that is exactly what we needed. Thank you @oleg.feoktistov
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests