2.0

Response
204 No Content
Enabling a Base DB Template
Use this call to enable a database template.
The call in this example uses an iterative process that is common in REST APIs, where you make a call to
retrieve data that you will need in the next call.
The first call retrieves data about the resource bundles.
GET https://example.aurora.com\
/datadirector/api/resourcebundles
The response returns a list of resource bundles. We choose to use a resource bundle with an ID of 81.
The final call contains a command that enables the base DB template for the resource bundle with ID = 81.
POST
https://example.aurora.com\
/datadirector/api/basedbtemplate\
/5?action=enable&rbId=81
The following is an example of the corresponding response.
202 Accepted
location: https://example.aurora.com\
/datadirector/api/task/58
Creating a DB Group
Use this call to create a database group.
The call in this example uses an iterative process that is common in REST APIs, where you make a call to
retrieve data that you will need in the next call.
The first call retrieves data about the resource bundles.
GET https://example.aurora.com\
/datadirector/api/resourcebundles
From the response, we learn that the resource bundle we want to use has an ID of 81.
The second call retrieves data about the organizations.
GET https://example.aurora.com\
/datadirector/api/orgs
From this response, we learn that the organization we want to use has an ID of 82.
The third call uses network information that we already know to retrieve the networkRefId.
GET https://example.aurora.com\
/datadirector/api/resourcepool\
/null:ResourcePool:resgroup-9673\
/networks
Chapter 4 Hello vFabric Data Director: a Simplified RESTful Workflow
VMware, Inc. 21