2.7

3 Retrieve information about the base DB templates for the resource bundle that is assigned to DB group
in which you want to create the database.
GET https://example.aurora.com/datadirector/api/resourcebundle/81/basedbtemplates
4 Retrieve data about the DB parameter groups for the organization that you want to use and the base DB
template that you selected in the previous call.
DB parameter groups are associated with base DB templates and contain the database configuration
settings that can be used to provision database instances. The database configurations can vary for
different database engines.
GET https://example.aurora.com/datadirector/api/org/82/basedbtemplate/5/dbparametergroups
5 Retrieve the diskName parameters from the base DB template read API, which can be used to assign the
disk mapping during database creation.
GET https://example.aurora.com/datadirector/api/resourcebundle/81/basedbtemplate/5?
needDetail=true
You can now use the information that you collected to create the database. The HTTP POST call
includes payload data that might be included as application code in a Python or JavaScript application.
6 Create the database.
POST https://example.aurora.com/datadirector/api/databases
{
"dbgroupId": 93,
"parameterGroupSetting": {
"parameterGroupId": 9
},
"name": "Aurora",
"dbName": "Aurora",
"administratorConfig": {
"ownerName": "Aurora",
"ownerPassword": "Aurora"
},
"resourceSetting": {
"resourceTemplateId": 88
},
"baseDbTemplateId":5
"diskMapping":{
"instance":[{
"diskName":"data1",
"diskSizeGb":15,
"datastoreRefId":"null:Datastore:datastore-3803"
}]
}
}
The response that the system returns might look as follows.
202 Accepted location : https://example.aurora.com/datadirector/api/task/6
VMware vFabric Data Director Programming Guide
22 VMware, Inc.