5.5

Table Of Contents
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
<vmext:VimServer
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
name="VC-22"
href="https://vcloud.example.com/api/admin/extension/vimServer/100">
...
</vmext:VimServer>
<vmext:ShieldManager
...
</vmext:ShieldManager>
</vmext:RegisterVimServerParams>
Finding Available vCenter Resources
Many of the operations required to import virtual machines or create Provider VDCs, external networks,
and network pools require you to identify vCenter resources and obtain references to them. You use these
references to make the vCenter resources available in the cloud.
Every vCenter server registered to your cloud is represented as a VimServerReference element in the cloud's
vimServerReferences list. You can retrieve one of these references to get a detailed representation of the
server object, including links to the server's resource pools, networks, hosts, and virtual machines.
Prerequisites
Verify that you are logged in to the vCloud API as a system administrator.
Procedure
1 Retrieve the list of vCenter servers registered to this cloud.
Use a request like this one.
GET https://vcloud.example.com/api/admin/extension/vimServerReferences
2 Retrieve the representation of a vCenter server.
The response to the request you made in Step 1 contains a list of VimServerReference elements. You can
make a GET request to any of these references to retrieve the XML representation of a vCenter server
registered to this cloud.
The VimServer element returned in response to the request you made in Step 2 includes several Link
elements where rel="down". These links contain URLs that you can use to retrieve lists of references to
vCenter resources on this server.
Table 72. vCenter Resource Lists
List URL List Contents
https://vcloud.example.com/api/admin/extensio
n/vimServer/id/vmsList
References to virtual machines in this vCenter server's
inventory
https://vcloud.example.com/api/admin/extensio
n/vimServer/id/hostReferences
References to hosts in this vCenter server's inventory
https://vcloud.example.com/api/admin/extensio
n/vimServer/id/resourcePoolList
ResourcePool objects
https://vcloud.example.com/api/admin/extensio
n/vimServer/id/networks
VimObjectRef elements of type DV_PORTGROUP and
NETWORK
https://vcloud.example.com/api/admin/extensio
n/vimServer/id/storageProfiles
VMWStorageProfile objects.
vCloud API Programming Guide
242 VMware, Inc.