REST API knowledge exchange
Post Reply
dlapointe
Service Provider
Posts: 25
Liked: 2 times
Joined: Jan 08, 2019 2:47 pm
Full Name: Dominic Lapointe
Contact:

Veeam V11a API issue for vCloud

Post by dlapointe »

Hello,

We have just upgraded from Veeam11 to Veeam 11a and we are experiencing a weird issue with the Enterprise manager API.

Basically, they added a new value HostUID (https://helpcenter.veeam.com/docs/backu ... ml?ver=110) and when I try to grab that ID using the API Call (https://helpcenter.veeam.com/docs/backu ... ml?ver=110), this return a managedServer UDI for my object(vCloud). However, if I try to POST (https://helpcenter.veeam.com/docs/backu ... ml?ver=110) a new config for a new vcloud organization, it does not work with the ID Found from the API.

If I compare the UID from the API and the one directly from Enterprise Manager database(dbo.C.Hosts table), they are different. If I use the UID from the database in the POST Query, it does work fine.

Any one have faced that same issue? Or is there a different way to get the UDI of the vCloud object from the API?

I have a case open with veeam (05282701)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam V11a API issue for vCloud

Post by oleg.feoktistov » 2 people like this post

Hi Dominic,

Try the following steps through EM REST API:

1. Find your vCloud Director server with GET /query?type=HierarchyRoot.

2. For the found vCD change the format of uid from urn:veeam:HierarchyRoot:id to urn:veeam:ManagedServer:id so that id value stays intact.

3. Use the value above as HostUID in your POST /vCloud/orgConfigs.


Thanks,
Oleg
dlapointe
Service Provider
Posts: 25
Liked: 2 times
Joined: Jan 08, 2019 2:47 pm
Full Name: Dominic Lapointe
Contact:

Re: Veeam V11a API issue for vCloud

Post by dlapointe »

Hi Oleg,

The query you proposed works and give the proper ID (the same one as in the database).

Now my question is, is this a bug? why does the other query give a different ID (https://helpcenter.veeam.com/docs/backu ... ml?ver=110)?

Thank you!
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam V11a API issue for vCloud

Post by oleg.feoktistov »

It definitely looks like a bug. It feels counterintuitive to get uid in one format and then change to another so that it could be accepted in vCD config spec. Reported to QA. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests