2.0

Hello vFabric Data Director: a
Simplified RESTful Workflow 4
Data Director API clients communicate with Data Director over HTTP, exchanging XML or JSON
representations of Data Director API objects. This chapter presents a series of examples that represent a typical
Data Director REST API workflow.
These examples describe the tasks you need to perform before and after creating a database with the REST
API.
This chapter includes the following topics:
n
“Creating a System Resource Bundle,” on page 17
n
“Converting a Base DBVM to a Base DB Template,” on page 18
n
“Creating a Resource Bundle,” on page 19
n
“Creating an Organization,” on page 20
n
“Assigning a Resource Bundle to an Organization,” on page 20
n
“Enabling a Base DB Template,” on page 21
n
“Creating a DB Group,” on page 21
n
“Creating a Database,” on page 22
Creating a System Resource Bundle
Use this call to create a system resource bundle.
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 pools.
GET https://example.aurora.com\
/datadirector/api\
/resourcepools?forsysrb=true
From this first call, we learn that the refId of ExampleSysRP is ‘null:ResourcePool:resgroup-9680’, which we
use in the next two calls.
The second call retrieves data about the datastores.
GET https://example.aurora.com\
/datadirector/api/resourcepool\
/null:ResourcePool:resgroup-9680\
/datastores
VMware, Inc.
17