Hi,
I am seeing something in the vCloud REST API version 5.1 that I did not see in the vCloud REST API version 1.5 when querying for AdminVdcRecords and AdminVAppRecords as the system admin user, namely that the vdc attribute value of the AdminVAppRecord does not match the href attribute of its parent AdminVdcRecord. Is this a bug? Is there a workaround other than using the idrecords format? Any help is greatly appreciated. Here are the relevant XML records:
get_response: (https://10.0.10.19/api/query?type=adminOrgVdc)
<?xml version="1.0" encoding="UTF-8"?>
<QueryResultRecords xmlns="http://www.vmware.com/vcloud/v1.5" total="2" pageSize="25" page="1" name="adminOrgVdc" type="application/vnd.vmware.vcloud.query.records+xml" href="https://10.0.10.19/api/query?type=adminOrgVdc&page=1&pageSize=25&format=records" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://10.0.10.19/api/v1.5/schema/master.xsd">
<Link rel="alternate" type="application/vnd.vmware.vcloud.query.references+xml" href="https://10.0.10.19/api/query?type=adminOrgVdc&page=1&pageSize=25&format=references"/>
<Link rel="alternate" type="application/vnd.vmware.vcloud.query.idrecords+xml" href="https://10.0.10.19/api/query?type=adminOrgVdc&page=1&pageSize=25&format=idrecords"/>
<AdminVdcRecord storageUsedMB="130895" storageLimitMB="256000" storageAllocationMB="0" status="READY" providerVdcName="OvDC PM" providerVdc="https://10.0.10.19/api/admin/extension/providervdc/062be25b-d5ba-4660-b5ec-24f723bb1c40" orgName="SL_Lab" org="https://10.0.10.19/api/org/91e83ee5-658c-4408-a77c-fcbc8bd99049" numberOfVApps="2" numberOfVAppTemplates="0" numberOfStorageProfiles="1" numberOfMedia="1" numberOfDisks="0" networkPool="https://10.0.10.19/api/admin/extension/networkPool/6c9c0be5-2968-4b73-b7a8-712f902fc711" name="CustOvDC" memoryUsedMB="0" memoryLimitMB="18595" memoryAllocationMB="18595" isSystemVdc="false" isEnabled="true" isBusy="false" cpuUsedMhz="0" cpuLimitMhz="9770" cpuAllocationMhz="9770" href="https://10.0.10.19/api/admin/vdc/5834de4c-0417-4bcb-a8a8-41ddab5041d5" vcName="vCenter5" allocationModel="2" task="https://10.0.10.19/api/task/3afb1527-eb4a-4a1d-b7a0-224a2c1129b7" cpuOverheadMhz="0" memoryOverheadMB="0" numberOfResourcePools="1" cpuReservedMhz="4885" storageOverheadMB="0" taskStatusName="vdcCreateVdc" taskStatus="success" taskDetails=" " vc="https://10.0.10.19/api/admin/extension/vimServer/567ad1ff-460c-4cfe-8c1c-3838cc70e585" isVCEnabled="true" memoryReservedMB="9297"/>
<AdminVdcRecord storageUsedMB="0" storageLimitMB="914585" storageAllocationMB="0" status="READY" providerVdcName="OvDC PM" providerVdc="https://10.0.10.19/api/admin/extension/providervdc/062be25b-d5ba-4660-b5ec-24f723bb1c40" orgName="TestOrg2" org="https://10.0.10.19/api/org/d4840717-a267-4f76-9c08-40c326fcb0b5" numberOfVApps="0" numberOfVAppTemplates="0" numberOfStorageProfiles="1" numberOfMedia="0" numberOfDisks="0" networkPool="https://10.0.10.19/api/admin/extension/networkPool/6c9c0be5-2968-4b73-b7a8-712f902fc711" name="TestOrg2VDC" memoryUsedMB="0" memoryLimitMB="0" memoryAllocationMB="0" isSystemVdc="false" isEnabled="true" isBusy="false" cpuUsedMhz="0" cpuLimitMhz="0" cpuAllocationMhz="0" href="https://10.0.10.19/api/admin/vdc/d27b1b1a-0488-441e-9182-f02e9a72f994" vcName="vCenter5" allocationModel="1" task="https://10.0.10.19/api/task/97d27dd2-b8f3-41a0-841b-39e824cca69d" cpuOverheadMhz="0" memoryOverheadMB="0" numberOfResourcePools="1" cpuReservedMhz="0" storageOverheadMB="0" taskStatusName="vdcCreateVdc" taskStatus="success" taskDetails=" " vc="https://10.0.10.19/api/admin/extension/vimServer/567ad1ff-460c-4cfe-8c1c-3838cc70e585" isVCEnabled="true" memoryReservedMB="0"/>
</QueryResultRecords>
get_response: (https://10.0.10.19/api/query?type=adminVApp)
<?xml version="1.0" encoding="UTF-8"?>
<QueryResultRecords xmlns="http://www.vmware.com/vcloud/v1.5" total="2" pageSize="25" page="1" name="adminVApp" type="application/vnd.vmware.vcloud.query.records+xml" href="https://10.0.10.19/api/query?type=adminVApp&page=1&pageSize=25&format=records" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5http://10.0.10.19/api/v1.5/schema/master.xsd">
<Link rel="alternate" type="application/vnd.vmware.vcloud.query.references+xml" href="https://10.0.10.19/api/query?type=adminVApp&page=1&pageSize=25&format=references"/>
<Link rel="alternate" type="application/vnd.vmware.vcloud.query.idrecords+xml" href="https://10.0.10.19/api/query?type=adminVApp&page=1&pageSize=25&format=idrecords"/>
<AdminVAppRecord vdcName="CustOvDC" vdc="https://10.0.10.19/api/vdc/5834de4c-0417-4bcb-a8a8-41ddab5041d5" storageKB="85983232" status="SUSPENDED" ownerName="system" org="https://10.0.10.19/api/org/91e83ee5-658c-4408-a77c-fcbc8bd99049" numberOfVMs="3" name="vApp Test Load 1" memoryAllocationMB="10752" isVdcEnabled="true" isInMaintenanceMode="false" isExpired="false" isEnabled="true" isDeployed="false" isBusy="false" creationDate="2013-04-25T13:29:39.457-04:00" cpuAllocationMhz="5" href="https://10.0.10.19/api/vApp/vapp-4ee8745c-183c-424c-9861-3b59d3bd025e" honorBootOrder="true" pvdcHighestSupportedHardwareVersion="7" cpuAllocationInMhz="5000" taskStatus="success" lowestHardwareVersionInVApp="7" task="https://10.0.10.19/api/task/bae71968-9110-4361-8e39-e7c0148ec7df" autoDeleteDate="2013-05-20T16:10:21.450-04:00" numberOfCpus="5" taskStatusName="vappDeploy"/>
<AdminVAppRecord vdcName="CustOvDC" vdc="https://10.0.10.19/api/vdc/5834de4c-0417-4bcb-a8a8-41ddab5041d5" storageKB="31457280" status="POWERED_OFF" ownerName="system" org="https://10.0.10.19/api/org/91e83ee5-658c-4408-a77c-fcbc8bd99049" numberOfVMs="1" name="CU" memoryAllocationMB="4096" isVdcEnabled="true" isInMaintenanceMode="false" isExpired="false" isEnabled="true" isDeployed="false" isBusy="false" creationDate="2013-04-25T13:32:17.903-04:00" cpuAllocationMhz="1" href="https://10.0.10.19/api/vApp/vapp-81ef0122-f756-4f5a-834c-6e5ceede6b1b" honorBootOrder="true" pvdcHighestSupportedHardwareVersion="7" cpuAllocationInMhz="1000" taskStatus="error" lowestHardwareVersionInVApp="7" task="https://10.0.10.19/api/task/67853468-3c52-4323-ae89-ee25d5741a66" autoDeleteDate="2013-06-04T14:59:42.723-04:00" numberOfCpus="1" taskStatusName="vappDeploy"/>
</QueryResultRecords>