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
Code | Description |
---|---|
200 | Success. |
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
Version | Changes |
---|---|
4.0 | Function added. |