2.0

From the response, we learn that the db group we want to use has an ID of 93.
The second call retrieves data about the resource template for the organization with ID = 82 (that we determined
in a previous example).
GET https://example.aurora.com\
/datadirector/api/org/82
/resourcetemplates
The response tells us that the resource template we want to use has an ID of 88.
A third call retrieves information about the base DB templates.
GET https://example.aurora.com\
/datadirector/api/basedbtemplates
From the response, we learn that the base DB template we want to use has an ID of 5.
The fourth call retrieves data about the DB parameter groups for the organization with ID = 82 and base DB
template ID = 5 (that we determined from the previous calls).
GET https://example.aurora.com\
/datadirector/api/org/82
/basedbtemplate/5/dbparametergroups
From the response, we learn that the DB parameter group we want to use has an ID of 9.
The final call in the sequence contains a 'payload' of data that includes the information that we have retrieved
in the previous calls. This is often included as application code.
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
}
The following is an example of the corresponding response.
202 Accepted
location : https://example.aurora.com\
/datadirector/api/task/6
Chapter 4 Hello vFabric Data Director: a Simplified RESTful Workflow
VMware, Inc. 23