JSON API » domains » domains/web/list

Gets the fields of web domains, as configured in /etc/enswitch/domains.ini.

Input parameters

No authentication or other input parameters are used.

Responses

CodeDescription
200Success.

Data returned

An array of fields, corresponding to the configured web domains. If /etc/enswitch/domains.ini does not exist, or is empty, an empty array is returned. The contents of the domains.ini file are cached for up to one minute.

Example: With required parameters

http://enswitch.example.com/api/json/domains/web/list/

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "127.0.0.1": { "plan": 2 } }, { "example.com", { "plan": 3 } } ] }

Change history

VersionChanges
4.0Function added.