5.1

Table Of Contents
The server creates and enables the Provider vDC and returns a VMWProviderVdc element that includes
information derived from the contents you POSTed, along with a set of Link elements that you can use to
access, remove, disable, or modify the Provider vDC.
n
The new Provider vDC becomes a member of the ProviderVdcReferences element of the VCloud.
n
The resource pool you selected is removed from the resource pool list of the vCenter server.
n
Each storage profile you specified becomes the basis for a ProviderVdcStorageProfile object, and can be
retrieved from the Provider vDC after it has been created, or by using a providerVdcStorageProfile query.
n
A VxlanPoolType network pool is created on the vCenter server referenced by the VimServer element you
created in Step 3a and implicitly attached to the new Provider vDC. You can create other types of network
pools on that vCenter server if you want them to be available in the Provider vDC. See “Create a Network
Pool,” on page 222.
Example: Create a Provider vDC
This request creates a Provider vDC specifying a resource pool extracted from the response portion of
“Example: Retrieve a List of Resource Pools from a vCenter Server,” on page 202 and a storage profile extracted
from “Example: Retrieve a List of Storage Profiles from a vCenter Server,” on page 208. The vCenter server
that provides the resources is referenced in the VimServerRef and VimServer elements.
Request:
POST https://vcloud.example.com/api/admin/extension/providervdcsparams
Content-Type: application/vnd.vmware.admin.createProviderVdcParams+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<vmext:VMWProviderVdcParams
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="PvDC-Example">
<vcloud:Description>Example Provider vDC</vcloud:Description>
<vmext:ResourcePoolRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
<vmext:MoRef>resgroup-195</vmext:MoRef>
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:ResourcePoolRefs>
<vmext:VimServer
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
<vmext:StorageProfile>Gold</vmext:StorageProfile>
</vmext:VMWProviderVdcParams>
The response includes a Task that tracks the creation of the Provider vDC, and a set of Link elements that you
can use to operate on or modify the Provider vDC. It also includes read-only values for ComputeCapacity and
SupportedHardwareVersions, and a list of HostReferences identifying the ESX hosts that provide the resources.
Response:
201 Created
Content-Type: application/vnd.vmware.admin.vmwprovidervdc+xml
...
<?xml version="1.0" encoding="UTF-8"?>
<vmext:VMWProviderVdc
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
vCloud API Programming Guide
210 VMware, Inc.