2.5

2 Enable the base DB template for the resource bundle with the ID you select, in this example, 81.
POST https://example.aurora.com/datadirector/api/basedbtemplate/5?action=enable&rbId=81
This call performs an assign action and does not include payload data. The response might look like the
following.
202 Accepted location: https://example.aurora.com/datadirector/api/task/58
What to do next
Create a database group.
Create a Database Group
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.
Prerequisites
n
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,” on page 19.
n
Enable at least one base DB template in the organization. See “Enable a Base DB Template,” on page 19.
Procedure
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",
VMware vFabric Data Director Programming Guide
20 VMware, Inc.