5.1

Table Of Contents
</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, ESX/ESXi 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 7-2. 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 ESX/ESXi 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.
Example: Resources on a vCenter Server
Request:
GET https://vcloud.example.com/api/admin/extension/vimServer/9
vCloud API Programming Guide
200 VMware, Inc.