2.0

Requesting a List
Use the GET verb with any of the ‘Enumerate’ calls (collection URLs). This will return a list of URLs that contain
the names of the objects in a collection. Use the GET verb again with each of the URLs to retrieve the data for
a specific object. All collection URLs support encoding as application/xml, application/json, or text/plain media
types.
API REST Response Codes
All responses include an HTTP status code and, unless the status code is 204 (No Content), a Content-Type
header. Response content depends on the request. Some responses include a document body, some include
only a URL, and some are empty.
The code sections that follow are examples of Data Director API responses.
Sample response for OrgCreate:
Status: 201
Server: Apache-Coyote/1.1
Location: https://example.aurora.com \
/datadirector/api/org/187
Content-Length: 0
Date: Wed, 07 Mar 2012 03:40:07 GMT
Sample response for OrgRead
Status: 200
Server: Apache-Coyote/1.1
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 UT
Content-Type: application/json
Transfer-Encoding: chunked
Date: Wed, 07 Mar 2012 03:40:07 GMT
{'status':'NORMAL','description':
'Org created by test harness','id':
243,'name':'Test org'}
Sample response for OrgUpdate:
Status: 204
Server: Apache-Coyote/1.1
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Date: Wed, 07 Mar 2012 03:40:07 GMT
Sample response for OrgDelete:
Status: 202
Server: Apache-Coyote/1.1
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 UTC
Location: https://example.aurora.com \
/datadirector/api/task/43
Content-Length: 0
Date: Wed, 07 Mar 2012 03:40:07 GMT
Chapter 3 Making a Call
VMware, Inc. 15