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
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
<vmext:MoRef>resgroup-235</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:ResourcePoolVimObjectRef>
<vmext:ResourcePoolRef
type="application/vnd.vmware.admin.vmwProviderVdcResourcePool+xml"
href="https://vcloud.example.com/api/admin/extension/resourcePool/66 />
<vmext:Enabled>true</vmext:Enabled>
<vmext:Primary>false</vmext:Primary>
</vmext:VMWProviderVdcResourcePool>
</vmext:VMWProviderVdcResourcePoolSet>
Add Resource Pools to a Provider vDC
A system administrator can add secondary resource pools to an existing Provider vDC. Adding resource pools
allows organization vDCs that reference the Provider vDC to provide additional resources.
When you create a Provider vDC, it initially contains one resource pool, called the primary resource pool.
Adding secondary resource pools allows a Provider vDC to support additional resource elasticity in all
AllocationVApp (pay as you go) organization vDCs that it supports. Resource elasticity in an organization vDC
means that the vDC's capacity to support compute resources can grow or shrink on demand.
Secondary resource pools must come from the vCenter server that provides the primary resource pool. See
“Retrieve a List of Resource Pools from a vCenter Server,” on page 168.
Prerequisites
Verify that you are logged in as a system administrator.
Procedure
1 Retrieve the XML representation of the Provider vDC.
Use a request like this one:
GET https://vcloud.example.com/api/admin/extension/providervdc/35
2 Locate the updateResourcePools link in the VMWProviderVdc.
Every VMWProviderVdc element includes an action link like this one to the Provider vDC's
updateResourcePools action.
<Link
rel="update:resourcePools"
type="application/vnd.vmware.admin.vmwProviderVdcResourcePoolSet+xml"
href="https://vcloud.example.com/api/admin/extension/providervdc/35/action/updateResourcePool
s"/>
3 Retrieve the resource pool list from the Provider vDC.
The VMWProviderVdcResourcePoolSet contains references to the Provider vDC's existing resource pools
and the vCenter server that hosts them.
4 Choose another resource pool from the same vCenter server.
5 Create an UpdateResourcePoolSetParams element that contains an AddItem element for each resource pool
to add.
6 POST the UpdateResourcePoolSetParams element you created in Step 5 to the Provider vDC's
resourcePools link shown in Step 2.
vCloud API Programming Guide
178 VMware, Inc.