API https://{VCD DNS}:api/vApp/vapp-ID
search cancel

API https://{VCD DNS}:api/vApp/vapp-ID

book

Article ID: 369828

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

 

When using the API endpoint https://{VCD DNS}/api/vApp/vapp-id to retrieve vApp details in vCloud Director versions between 10.4.2.1 and 10.5.1.1, the response will not include vCenter details.

 

========================

 <vmext:VmVimObjectRef>

 <vmext:VimServerRef href="xx.xx.xx.xx/api/admin/extension/vimServer/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" id="urn:vcloud:vimserver:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name=""/>
 <vmext:MoRef>vm-53</vmext:MoRef>
  <vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
   </vmext:VmVimObjectRef>

========================

Cause

This is a known bug in versions between 10.4.2.1 and 10.5.1.1.

Resolution

The issue has been fixed in the code starting from vCloud Director version 10.5.2 and in subsequent releases.

Additional Information

The expected output will be as below: 

==================

<vmext:VimServerRef href="https://xx.xx.xx.xx/api/admin/extension/vimServer/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" id="urn:vcloud:vimserver:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vCenter"/>
<vmext:MoRef>vm-33</vmext:MoRef>

====================