Resource bundles allow you to bundle CPU, memory, storage, database template, and networking resources. You create resource bundles from resource pools.

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.

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 databases in an organization.

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 

You learn that the template ID for the base DB template is 5.

You can now make an HTTP POST call that includes payload data. The payload data might be included as application code in a Python or JavaScript application.

4

Create the resource bundle by making an HTTP POST call and specifying network settings, storage settings, the base DB template, and other attributes.

POST https://example.aurora.com/datadirector/api/resourcebundles
{
  "networkSetting": {
    "instance": [{
      "networkRefId": "null:Network:network-1464","ipAllocType": "DHCP"
      }]
      },
  "dataDataStoreRefId": "null:Datastore:datastore-3803", 
  "name": "AuroraRB",
  "minStorageAlpha": 1.0, 
  "dataStorageSize": 100000,
  "backupDataStoreRefId": "null:Datastore:datastore-3803", 
  "baseDbTemplateId": {
    "instance": [{
      "templateId": 5
        }]
        },
  "resourcePoolRefId": "null:ResourcePool:resgroup-9673",
  "backupStorageSize": 100000
}

The response that the system returns might look as follows.

202 Accepted location: https://example.aurora.com/datadirector/api/task/57

Create an organization.