A system administrator can define VDC templates, share them with organizations, and grant organization members the right to use the templates to create VDCs in their organization.
A VDC template specifies a VDC configuration. If the configuration includes an Edge Gateway, the VDC can support creation of routed organization VDC networks.
If you are a system administrator, you can create a VDC without using a template. See Add a VDC to an Organization.
Prerequisites
Verify that you are logged in as an organization administrator or a role with equivalent set of rights.
Procedure
Example: Create a VDC From a Template
This request creates a VDC from a template. If you do not specify the name attribute or include a Description element, the new VDC is created with the name and Description shown in the template.
POST https://vcloud.example.com/api/org/26/action/instantiate Content-Type: application/vnd.vmware.vcloud.instantiateVdcTemplateParams+xml ... <?xml version="1.0" encoding="UTF-8"?> <InstantiateVdcTemplateParams xmlns="http://www.vmware.com/vcloud/v1.5" Name="templateVdc"> <Description>Example VDC from template</Description> <Source href="https://vcloud.example.com/api/VdcTemplate/100"/> </InstantiateVdcTemplateParams>
The response is a Task.
202 Accepted Content-Type: application/vnd.vmware.vcloud.task+xml <Task name="task" status="running" operation="Creating Virtual Datacenter templateVdc (100)" ... ... </Task>