2.7

4 Send the request to your Data Director HTTP server.
5 Read the response and parse the XML or JSON data within the response.
When you receive a 202 Accepted status and a URL, this is an asynchronous response and you must
poll to find out the results of the call. Use GET followed by the URL to retrieve the results of an
asynchronous response.
6 Use the data in your application.
Example: Request Body
The request body of a RoleCreate call can use XML or JSON.
XML:
<RoleCreate>
<name>sample</name>
<description>sample</description>
<orgId>1</orgId>
<active>true</active>
</RoleCreate>
JSON:
{
"name" : "sample",
"description" : "sample",
"orgId" : 1,
"active" : true
}
Chapter 1 Data Director API Overview
VMware, Inc. 13