1.5

Table Of Contents
Example: Create a Provider vDC
This request creates a small Provider vDC using a resource pool and datastore extracted from the response
portion of “Example: Retrieve a List of Resource Pools from a vCenter Server,” on page 169. In practice, the
DataStoreRefs element typically includes additional VimObjectRef elements that reference other datastores
available on the specified VimServer. The vCenter server that provides the resources is referenced in the
VimServerRef and VimServer elements.
Request:
POST https://vcloud.example.com/api/admin/extension/providervdcs
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"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
name="PvDC-Example"
type="application/vnd.vmware.admin.vmwprovidervdc+xml">
<vcloud:Description>Example Provider vDC</vcloud:Description>
<vmext:DataStoreRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
<vmext:MoRef>datastore-173</vmext:MoRef>
<vmext:VimObjectType>DATASTORE</vmext:VimObjectType>
</vmext:VimObjectRef>
</vmext:DataStoreRefs>
<vmext:ResourcePoolRefs>
<vmext:VimObjectRef>
<vmext:VimServerRef
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
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
type="application/vnd.vmware.admin.vmwvirtualcenter+xml"
href="https://vcloud.example.com/api/admin/extension/vimServer/9" />
</vmext:VMWProviderVdc>
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,
StorageCapacity, and HighestSupportedHardwareVersion that were derived from the vCenter, datastores, and
resource pool specified in the request, and a list of HostReferences identifying the ESX hosts that provide the
resources.
Response:
201 Created
Content-Type: application/vnd.vmware.admin.vmwprovidervdc+xml
...
<vmext:VMWProviderVdc
xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5"
xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
vCloud API Programming Guide
174 VMware, Inc.