Next: /conf/runime, Up: /conf [Contents][Index]
Return list of configuration files. On success, a JSON array is returned. Each array element is an object with two attributes:
Pathname of the configuration file.
Configuration file syntax (see Configuration File Syntax).
For example:
GET /conf/files ⇒
[{"file":"/etc/pies.conf", "syntax":"pies"},
{"file":"/etc/inetd.conf", "syntax":"inetd"}]
Adds a new configuration file. The body must be a JSON object with ‘file’ and ‘syntax’ attributes, as described above. The ‘file’ value must contain a pathname of a configuration file written in a syntax supplied by the ‘syntax’ attribute (see Configuration File Syntax).
This request returns 201 code on success. To actually parse and load the added configuration file, send a ‘PUT’ request to ‘/conf/runtime’ (see /conf/runime).
Clears all previously configured configuration files. Responds with:
{ "message":"file list cleared", "status":"OK" }
Removes files named in the list from the list of configuration files.
The ‘DELETE’ response is 200 on success. To actually update the configuration of the running process, send a ‘PUT’ request to ‘/conf/runtime’ (see /conf/runime).