You add a data domain with the endeca-cmd create-dd name command, where name is the name of your data domain. Running this command is equivalent to using the createDataDomain operation in the Manage Web Service request.
To create a data domain:
<ns3:getDataDomainResponse
xmlns:ns2="http://www.endeca.com/endeca-server/types/2/0"
xmlns:ns3="http://www.endeca.com/endeca-server/manage/2/0">
<ns3:dataDomainDetail>
<ns2:name>MyDD</ns2:name>
<ns2:allowOversubscribe>true</ns2:allowOversubscribe>
<ns2:allowQueriesOnLeader>true</ns2:allowQueriesOnLeader>
<ns2:numFollowers>0</ns2:numFollowers>
<ns2:readOnly>false</ns2:readOnly>
<ns2:enabled>true</ns2:enabled>
<ns2:numComputeThreads>4</ns2:numComputeThreads>
<ns2:computeCacheSizeMB>0</ns2:computeCacheSizeMB>
<ns2:startupTimeoutSeconds>600</ns2:startupTimeoutSeconds>
<ns2:shutdownTimeoutSeconds>30</ns2:shutdownTimeoutSeconds>
<ns2:sessionIdType>header</ns2:sessionIdType>
<ns2:sessionIdKey>X-Endeca-Session-ID</ns2:sessionIdKey>
</ns3:dataDomainDetail>
</ns3:getDataDomainResponse>