2.7

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",
"reservationExpandable": true
},
"networkRefId": "null:Network:network-1464",
"resourceBundleId": 81,
"name": "AuroraDbgroup",
"organizationId": 82,
"dataStorageAllocs": {
"instance":[{
"datastoreRefId":"null:Datastore:datastore-3803",
"reservationSizeMb":5120
}]
},
"memAlloc": {
"reservation": 500,
"shareLevel": "NORMAL",
"reservationExpandable": true
}
}
The response that the system returns might look as follows.
202 Accepted location : https://example.aurora.com/datadirector/api/task/59
What to do next
Create a database.
Create a Database
When you need an empty database for a new application, you can create it with a database resource
template. The template is configured to allocate resources to the database.
Prerequisites
n
Create an organization. See “Create an Organization,” on page 19.
n
Create a database group. See “Create a Database Group,” on page 20.
n
Enable a base DB template. See “Enable a Base DB Template,” on page 20.
Procedure
1 Retrieve information about database groups.
GET https://example.aurora.com/datadirector/api/dbgroups
2 Retrieve information about the resource template for the organization in which you want to create the
database.
GET https://example.aurora.com/datadirector/api/org/82/resourcetemplates
Chapter 2 Hello vFabric Data Director: A Simplified RESTful Workflow
VMware, Inc. 21