Server daemons

List daemons

List all the daemons available in the server.

GET api/servers/{server}/daemons

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/daemons" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Create daemon

Creates a new daemon in the server

POST api/servers/{server}/daemons

Parameters

Parameter Type Status Description
command string required Maximum: 150

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/daemons" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"command":"/home/ploi/daemon.sh"}'