2.7

Example: Create a Database
The following example shows all elements of the creation process discussed above together. The example
assumes that you created a database group and a base DB template, and assigned the base DB template to a
resource template. It also assumes that the template is enabled in the organization to which the database
group belongs. The resource template and backup template used in this example are available by default, so
you do not have to create them.
POST https://example.aurora.com/datadirector/api/databases
Content-type : application/json
Authorization : Basic YWRtaW5AYXVyb3JhLnZtd2FyZS5jb206Y2xvdWRibXM=
Accept : application/json
{
"administratorConfig": {
"ownerName": "Aurora",
"ownerPassword": "Aurora"
},
"backupSetting": {
"backupTemplateId": 15
},
"baseDbTemplateId": 1,
"dbName": "Aurora_provision"
"hostName":"Aurora",
"dbgroupId": 26,
"description": "RestApiExample: provision database",
"ipWhitelistConfig": {
"enabled": true,
"ipWhitelistDbIpRange": {
"instance": [
{
"beginAddress": "10.37.1.1",
"description": "ip range",
"enabled": true,
"endAddress": "10.37.1.100"
},
{
"beginAddress": "10.37.1.105",
"description": "single ip",
"enabled": false,
"endAddress": "10.37.1.105"
}
]
}
},
"name": "Aurora_provision",
"parameterGroupSetting": {
"parameterGroupId": 2
},
"resourceSetting": {
"resourceConfig": {
"cpuReservationMHz": 0,
"highAvailabilityEnabled": true,
"memoryMb": 2000,
"memoryReservationMb": 0,
Chapter 2 Hello vFabric Data Director: A Simplified RESTful Workflow
VMware, Inc. 23