Next: /conf, Up: Control API [Contents][Index]
This endpoint controls the state of the running pies
instance and accepts the following HTTP requests: GET
,
DELETE
, POST
(or PUT
).
Retrieves information about the current instance. The response body is a JSON object with the following attributes:
PID of the running daemon.
Array of the command line arguments. ‘argv[0]’ is the program name.
Name of the pies
binary.
The instance name. See instances.
Package name (the string ‘GNU Pies’).
Package version
Any of these can be used in the URI to request the information about that particular attribute, e.g.:
GET /instance/argv ⇒ {"argv":["pies", "-x2"]}
Stops the current pies
instance.
Restarts the current pies
instance.