2.5

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 the databases in an organization.
Procedure
1 Retrieve data about the resource pools.
GET https://example.aurora.com/datadirector/api/resourcepools?forsysrb=true
From this first call, you learn that the refId of ExampleSysRP is null:ResourcePool:resgroup-9680. You
use the refID in the next two calls.
2 Retrieve information about the datastores associated with the system resource pool.
GET https://example.aurora.com/datadirector/api/resourcepool/
null:ResourcePool:resgroup-9680/datastores
3 Retrieve network information associated with the system resource pool.
GET https://example.aurora.com/datadirector/api/resourcepool/
null:ResourcePool:resgroup-9680/networks
You can now allocate the system resource pool on the datastore using the network information you
retrieved. The HTTP POST call includes payload data that might be included as application code in an
application such as Python or JavaScript.
4 Create the system resource bundle.
POST https://example.aurora.com/datadirector/api/sysresourcebundle
{
"networkRefId": "null:Network:network-1464",
"backupDataStoreRefId": "null:Datastore:datastore-3803",
"dataDataStoreRefId": "null:Datastore:datastore-3803",
"backupStorageSize": 0,
"dataStorageSize": 151200,
"resourcePoolRefId": "null:ResourcePool:resgroup-9680",
"ipAllocType": "DHCP"
}
The response that the system returns might look as follows.
202 Accepted location: https://example.aurora.com/datadirector/api/task/55
What to do next
Convert a base DBVM to a base DB template.
Convert a Base DBVM to a Base DB Template
Data Director uses base database templates (base DB templates) to create databases. A base DB template is a
virtual machine that contains all the software required to create a database. Required software includes the
operating system (OS), database, and system software configurations. The base DB template can also contain
third-party tools that are required for a particular environment.
Create a base DB template from a database virtual machine (DBVM). A DBVM is a virtual machine with a disk
layout that contains the seven virtual machine disks (VMDK) required for base DBVMs to work in Data
Director. See vFabric Data Director Administrator and User Guide.
Prerequisites
Create a system resource bundle. See “Create a System Resource Bundle,” on page 15.
VMware vFabric Data Director Programming Guide
16 VMware, Inc.