Database groups contain sets of databases within an organization. Database groups enable grouping of related databases and provide efficient use of resources that are needed to provision and operate databases.

Assign at least one resource bundle to the organization where you want to create a database group. See Assign a Resource Bundle to an Organization.

Enable at least one base DB template in the organization. See Enable a Base DB Template.

1

Retrieve the list of resource bundles and look for the ID of the resource bundle that you want to use.

GET https://example.aurora.com/datadirector/api/resourcebundles
2

Retrieve the list of organizations and look for the ID of the organization that you want to use.

GET https://example.aurora.com/datadirector/api/orgs
3

Retrieve the network information for the resource pool.

Because Data Director does not have the resource pool ID, you access it indirectly.

GET https://example.aurora.com/datadirector/api/resourcepool/
             null:ResourcePool:resgroup-9673/networks
4

Create the database group using the resource bundle, organization, and network information that you retrieved.

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

POST https://example.aurora.com/datadirector/api/dbgroups
{
  "cpuAlloc": {
    "reservation": 500,
    "shareLevel": "NORMAL", 
    "share": 100,
    "limit": -1,
    "reservationExpandable": true
    },
  "networkRefId": "null:Network:network-1464",
  "resourceBundleId": 81,
  "name": "AuroraDbgroup",
  "organizationId": 82,
  "dataStorageAlloc": {
    "reservation": 50000, 
    "shareLevel": "NORMAL",
    "share": 100,
    "limit": -1, 
    "reservationExpandable": false
    },
  "backupStorageAlloc": {
    "reservation": 50000,
    "shareLevel": "NORMAL", 
    "share": 100,
    "limit": -1,
    "reservationExpandable":false
    },
  "memAlloc": {
    "reservation": 500,
    "shareLevel": "NORMAL",
    "share": 100,
    "limit": -1,
    "reservationExpandable": true
    }
}

The response that the system returns might look as follows.

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

Create a database.