5.1
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
- Summary of vCloud API Browsing Requests
- Retrieve the Login URL and List of Supported API Versions
- Create a Login Session Using the Integrated Identity Provider
- Retrieve a List of Organizations Accessible to You
- Retrieve an Administrative View of a Cloud
- Retrieve a List of vSphere Platform Operations and Objects for a Cloud
- Provisioning an Organization
- Summary of vCloud API Provisioning Requests
- Upload an OVF Package to Create a vApp Template
- Download a vApp Template as OVF
- Upload a Media Image
- Copying and Moving with the vCloud API
- Capturing and Importing vApps
- Cataloging vApp Templates and Media Images
- Creating and Using Independent Disks
- View or Change the Owner of an Object
- 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
- Provide User Input Requested by a Virtual Machine
- Attach or Detach an Independent Disk
- Creating and Using vApp Snapshots
- Operate a vApp
- Configuring vApps and Virtual Machines
- Retrieve the Configuration Links for a vApp
- Retrieve the Configuration Links for a Virtual Machine
- Update Multiple Sections of 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
- Update the Storage Profile for a Virtual Machine
- Creating and Managing Organizations
- Summary of Administrative Requests
- Administrator Credentials and Privileges
- Organization Administration
- vDC Administration
- Network Administration
- Catalog Administration
- User and Group Administration
- Working With Roles and Rights
- Controlling Access to vApps and Catalogs
- Managing and Monitoring a Cloud
- Summary of vSphere Platform Extension Requests
- Retrieve or Update System Settings
- Attach a vCenter Server
- Finding Available vCenter Resources
- Create a Provider vDC
- Create an External Network
- Create a Network Pool
- Import a Virtual Machine from vCenter
- Relocate a Virtual Machine to a Different Datastore
- Truststore and Keytab Maintenance
- Retrieve the vSphere URL of an Object
- Working With Object Metadata
- Using the Query Service
- Configuring and Using Blocking Tasks and Notifications
- vCloud Director Extension Services
- XML Representations in the vCloud API
- Index
Create a Provider vDC
A Provider vDC is a collection of compute, memory, and storage resources from one vCenter. A Provider vDC
provides resources to organization vDCs.
A Provider vDC is represented as a VMWProviderVdc element in the extension view and a ProviderVdc element
in the admin view. A system administrator can create a VMWProviderVdc or modify it to add or remove
datastores, storage profiles, and resource pools, or change other properties such as its description. A system
administrator cannot change the primary resource pool or vCenter server that was specified when the Provider
vDC was created. An organization administrator can retrieve a read-only representation of a Provider vDC in
a ProviderVdc element. The ProviderVdc element includes a subset of the elements and attributes that are visible
in the corresponding VMWProviderVdc.
Prerequisites
n
Verify that you are logged in to the vCloud API as a system administrator.
n
Choose a vCenter server to supply a resource pool and storage profiles to this Provider vDC. See “Finding
Available vCenter Resources,” on page 200.
Procedure
1 Retrieve the XML representation of the vSphere platform extensions.
Use a request like this one.
GET https://vcloud.example.com/api/admin/extension
2 Examine the response to locate the Link element that contains the URL for adding Provider vDCs to the
cloud.
This element has a rel attribute value of add and a type attribute value of
application/vnd.vmware.admin.createProviderVdcParams+xml, as shown here:
<Link
type="application/vnd.vmware.admin.createProviderVdcParams+xml"
rel="add"
href="https://vcloud.example.com/api/admin/extension/providervdcsparams"/>
3 Create a VMWProviderVdcParams element that specifies the properties of the Provider vDC.
a Include a VimServer element that references the vCenter server that you have chosen to supply a
resource pool and storage profiles to this Provider vDC.
b Include a ResourcePoolRefs element that specifies one resource pool.
The ResourcePoolRef must contain the href attribute value of the VimServer element you created in
Step 3a, as well as the MoRef and VimObjectType values of the resource pool as they appear in the
ResourcePool and element from the resource pool list. See the request portion of “Example: Create a
Provider vDC,” on page 210.
NOTE You must specify exactly one resource pool when you create the Provider vDC. You can add
more resource pools after the Provider vDC is created.
c Include at least one StorageProfile element that contains the name of a storage profile that has been
defined on the vCenter server referenced in the VimServer element you created in Step 3a.
4 POST the VMWProviderVdc element you created in Step 3 to the URL described in Step 2.
See the request portion of “Example: Create a Provider vDC,” on page 210.
Chapter 7 Managing and Monitoring a Cloud
VMware, Inc. 209