2.0

Creating an Organization
Use this call to create an organization.
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 the adminId from the user information.
GET https://example.aurora.com\
/datadirector/api/users
From the response, we learn that the adminId = 1.
The final call contains a 'payload' of data that you submit to a web service. This is often included as application
code in an application such as Python or JavaScript.
This is the request.
POST https://example.aurora.com\
/datadirector/api/orgs
{
"adminId": 1,
"name": "AuroraOrg"
}
The following is an example of the corresponding response.
201 Created
location: https://example.aurora.com\
/datadirector/api/org/82
Assigning a Resource Bundle to an Organization
Use this call to assign a resource bundle to an organization.
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 the resource bundle with an ID of 81.
The second call retrieves data about the organization.
GET https://example.aurora.com\
/datadirector/api/orgs
The response returns a list of organizations. We choose to use the organization with an ID of 82.
The final call in the sequence performs the assignment operation.
This is an example.
POST https://example.aurora.com\
/datadirector/api/resourcebundle\
/81?action=assign&org=82
Note that this request does not include a 'payload' component.
VMware vFabric Data Director API Programming Guide
20 VMware, Inc.