/api/connect

Usage

This function returns details about the ARDI server and its database configuration.

Details

DetailValue
GroupServer
From Server Version0.9.0
PermissionPublic
MethodsGET or POST
Parameters
ParameterNotesMeaning
formatString (xml)Either 'xml' or 'json'

Return Value

The return value is an XML or JSON file that gives you information about…

ElementMeaning
AuthIf this is no, indicates that the server is in guest mode and does not require authentication to request simple data
SitesA list of the sites available on the server (if supported and permitted)
VersionThe internal database version of the server.
ServicesWhat ARDI and internal services are available. This will include a list of contexts and which port number(s) any live data consolidators run on
SettingsSpecific settings regarding the server, such as zero energy confirmation and isolation

Examples

Request
http://<servername>/s/<sitename>/api/connect
Success (XML)
<ardi>
   <auth>no</auth>
   <sites>
	<subsite url="default">Primary Site</subsite>
	<subsite url="second">Secondary Site</subsite>
	<subsite url="ter">Tertiary Site</subsite>
   </sites>
   <name>Primary Site</name>
   <version>0.9.9c</version>
   <service name="web" port="80"/>
   <service name="data" port="8104"/>
   <service name="contextdata" id="1" context="Actual" port="8104"/>
   <setting name="zeroenergy">disabled</setting>
   <setting name="users">Unlimited</setting>
</ardi>
Success (JSON)
{
	"auth": "no",
	"sites": [{
			"url": "default",
			"name": "API Demo Server"
		}
	],
	"name": "TripleI",
	"version": "0.9.9e",
	"services": [{
			"name": "data",
			"port": "8079"
		},
		{
			"name": "contextdata",
			"port": "8079",
			"id": "1",
			"context": "Actual"
		},
		{
			"name": "web",
			"port": "80"
		}
	],
	"settings": [{
		"name": "isolation",
		"value": "disabled"
	}]

}