2.5

Procedure
1 Retrieve the IDs of the base DBVMs.
GET https://example.aurora.com/datadirector/api/basedbvms
The call returns the data for the base DBVMs. If you decide to use the base DBVM with ID 2 to create a
base DB template, you can make an HTTP POST call to create the base DB template.
2 Create the base DB template.
POST https://example.aurora.com/datadirector/api/basedbtemplates
{
"keepBaseDbvm": true,
"baseDbvmId": 2,
"name": "vpostgress_template"
}
The response that the system returns might look as follows.
202 Accepted
location: https://example.aurora.com/datadirector/api/task/56
What to do next
Create a resource bundle.
Create a Resource Bundle
Resource bundles allow you to bundle CPU, memory, storage, database template, and networking resources.
You create resource bundles from resource pools.
Prerequisites
n
Create a resource pool to use for allocating CPU and memory resources. Resource pools are part of the
underlying vSphere environment, you can create them using the vSphere Client, the vSphere Web Client,
or the vSphere SDK. See vFabric Data Director Administrator and User Guide for information on cluster and
resource pool requirements for Data Director.
n
Decide on the storage resources that you want to include in the resource bundle. Plan for storage resources
for database storage and resources for backup storage.
n
Decide on the base DB template that you want to assign to the resource bundle. Organization users can
create and provision databases only when base DB templates are assigned to, and enabled in, an
organization's resource bundle or resource bundles. You can assign additional base DB templates to
resource bundles at any time. “Convert a Base DBVM to a Base DB Template,” on page 16 explains how
to create a base DB template.
n
Decide on the networking resources that you want to include in the resource bundle. The resource bundle's
networking resources are used for the DB access network for databases in an organization.
Procedure
1 Retrieve data about available resource pools; excluding the system resource pool.
GET https://example.aurora.com/resourcepools?forsysrb=false
2 Retrieve network information.
GET https://example.aurora.com/datadirector/api/resourcepool/
null:ResourcePool:resgroup-9680/networks
3 Retrieve information about the base DB templates.
GET https://example.aurora.com/datadirector/api/basedbtemplates
Chapter 2 Hello vFabric Data Director: A Simplified RESTful Workflow
VMware, Inc. 17