The system resource bundle provides CPU, memory, network, and storage resources for the base database virtual machines (base DBVMs) and base database templates that you use to create and provision databases. Each Data Director installation must have one system resource bundle.

You create the system resource bundle before setting up other Data Director entities and populate the resource bundle with base database templates and base DBVMs.

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.

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.

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 explains how to create a base DB template.

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.

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

Convert a base DBVM to a base DB template.