1.5
Table Of Contents
- vCloud API Programming Guide
- Contents
- vCloud API Programming Guide
- About the VMware vCloud API
- Hello vCloud: A Simplified RESTful Workflow
- Exploring a Cloud
- Provisioning an Organization with vApps, Templates, and Media
- Deploying and Operating vApps
- Summary of vCloud API vApp and Virtual Machine Operations Requests
- Create a vApp From a Template
- Compose a vApp From Existing Virtual Machines
- Recompose a vApp to Add or Remove Virtual Machines
- Operate a vApp
- Configuring vApps and Virtual Machines
- Retrieve the Configuration Links for a vApp
- Retrieve the Configuration Links for a Virtual Machine
- Retrieve or Update a Modifiable Section
- Update a vApp Network Configuration
- Update the NetworkConnectionSection of a Virtual Machine
- Retrieve or Modify the CPU Configuration of a Virtual Machine
- Retrieve or Modify the GuestCustomizationSection of a Virtual Machine
- Retrieve or Modify ProductSection Elements
- Retrieve or Modify Groups of Related Sections in a Virtual Machine
- Retrieve or Modify the Hard Disk Configuration of a Virtual Machine
- Creating, Provisioning, and Managing Organizations
- Summary of Administrative Requests
- Administrator Credentials and Privileges
- Organization Administration
- Network Administration
- vDC Administration
- Catalog Administration
- User and Group Administration
- Working With Roles and Rights
- Controlling Access to vApps and Catalogs
- Using vCloud API Extensions to Provision and Manage a Cloud
- Working With Object Metadata
- Using the Query Service
- Configuring and Using Blocking Tasks and Notifications
- XML Representations in the vCloud API
- Index
n
To see a list of references to ESX/ESXi hosts managed by this vCenter server, retrieve the
hostReferences link.
n
To see a list of references to virtual machines on ESX/ESXi hosts managed by this vCenter server, retrieve
the vmsList link.
Example: Resources on a vCenter Server
Request:
GET https://vcloud.example.com/api/admin/extension/vimServer/9
Response:
200 OK
...
<vmext:VimServer
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="VC22"
id="urn:vcloud:vimserver:9"
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9" ...>
...
<vcloud:Link
rel="down"
type="application/vnd.vmware.admin.vmsObjectRefsList+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9/vmsList" />
<vcloud:Link
rel="down"
type="application/vnd.vmware.admin.vmwHostReferences+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9/hostReferences" />
<vcloud:Link
rel="down"
type="application/vnd.vmware.admin.resourcePoolList+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9/resourcePoolList" />
<vcloud:Link
rel="down"
type="application/vnd.vmware.admin.vimServerNetworks+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9/networks" />
...
<vmext:Username>administrator</vmext:Username>
<vmext:Url>https://10.115.124.37:443</vmext:Url>
<vmext:IsEnabled>true</vmext:IsEnabled>
<vmext:IsConnected>true</vmext:IsConnected>
<vmext:ShieldManagerHost>cloud-vsla-e-lm-124-82.example.com</vmext:ShieldManagerHost>
<vmext:ShieldManagerUserName>admin</vmext:ShieldManagerUserName>
</vmext:VimServer>
Retrieve a List of Resource Pools from a vCenter Server
You can retrieve the list of resource pools available on a vCenter server registered to a cloud. To retrieve the
list, you make a GET request to the server's resourcePoolList link.
The ResourcePoolList of a VimServer element contains an entry for every available resource pool on the server.
Resource pools that a provider vDC is already using are not listed, because they are considered unavailable.
See “Finding Available vCenter Resources,” on page 167.
vCloud API Programming Guide
168 VMware, Inc.