2.7
Table Of Contents
Create an Organization
The Data Director hierarchy consists of organizations, each with its own discrete database groups and
databases. You create organizations to allow organization administrators independent management of their
database groups and databases.
Prerequisites
Create one or more resource bundles to allocate to the organization. See “Create a Resource Bundle,” on
page 17.
Procedure
1 Retrieve the available administrator IDs so you can use the ID to specify the administrator for the
organization.
GET https://example.aurora.com/datadirector/api/users
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 19.
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
Chapter 2 Hello vFabric Data Director: A Simplified RESTful Workflow
VMware, Inc. 19