I am using below vcloud API to get list of vsphere networks from vcenter, I get the list of all networks with their MoRef but the network name attribute is blank, however I can see names of the vsphere networks on vCloud UI.
API:
https://vcloud.example.com/api/admin/extension/vimServer/id/networks
Response:
<vmext:VimObjectRefList type="application/vnd.vmware.admin.vimServerNetworks+xml" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5http://example.com/api/v1.5/schema/vmwextensions.xsdhttp://www.vmware.com/vcloud/v1.5http://example.com/api/v1.5/schema/master.xsd">
<vcloud:Link rel="up" href= "https://example.com/api/admin/extension/vimServer/fd4fe2c2-06eb-488f-a1c5-00b135d07d30" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:VimObjectRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef href= "https://example.com/api/admin/extension/vimServer/fd4fe2c2-06eb-488f-a1c5-00b135d07d30" name="" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-681</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef href= "https://example.com/api/admin/extension/vimServer/fd4fe2c2-06eb-488f-a1c5-00b135d07d30" name="" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>dvportgroup-48</vmext:MoRef>
<vmext:VimObjectType>DV_PORTGROUP</vmext:VimObjectType>
</vmext:VimObjectRef>
<vmext:VimObjectRef>
<vmext:VimServerRef href= "https://example.com/api/admin/extension/vimServer/fd4fe2c2-06eb-488f-a1c5-00b135d07d30" name="" type="application/vnd.vmware.admin.vmwvirtualcenter+xml"/>
<vmext:MoRef>network-121</vmext:MoRef>
<vmext:VimObjectType>NETWORK</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:VimObjectRefs>
</vmext:VimObjectRefList>