2.5

2 Make an HTTP POST call to create the organization.
POST https://example.aurora.com/datadirector/api/orgs
{
"adminId": 1,
"name": "AuroraOrg"
}
The response that the system returns might look as follows.
202 Created location: https://example.aurora.com/datadirector/api/org/82
What to do next
Assign a resource bundle to the organization.
Assign a Resource Bundle to an Organization
Before the organization administrator can create a database in the organization, the system administrator has
to assign a resource bundle to the organization.
Prerequisites
n
Create a resource bundle. See “Create a Resource Bundle,” on page 17.
n
Create an organization. See “Create an Organization,” on page 18.
Procedure
1 Retrieve a list of all resource bundle IDs.
GET https://example.aurora.com/datadirector/api/resourcebundles
2 Retrieve a list of all organization IDs.
GET https://example.aurora.com/datadirector/api/orgs
3 Assign one of the resource bundles to one of the organizations.
POST https://example.aurora.com/datadirector/api/resourcebundle/81?action=assign&org=82
This call performs an assign action and does not include payload data. The response might look like the
following.
204 No Content
What to do next
Enable a base DB template.
Enable a Base DB Template
Organization administrators enable a base DB template on the underlying resource bundles so that
organization users can provision databases based on the base DB template.
Prerequisites
Assign at least one base DB template to the resource bundles of the organization. See “Assign a Resource Bundle
to an Organization,” on page 19.
Procedure
1 Retrieve a list of resource bundles.
GET https://example.aurora.com/datadirector/api/resourcebundles
Chapter 2 Hello vFabric Data Director: A Simplified RESTful Workflow
VMware, Inc. 19