Creating a new Enough instance via the API


#1

Bonjour,

For the record, it is now possible to create a new Enough instance via the API (provided the user belongs to the Enough group) like so:

  • curl -X POST -H 'Content-type: application/json' -H "Authorization: Token $ENOUGH_TOKEN" -d '{"name": "loic"}' https://api.enough.community/create-or-upgrade/
  • firefox https://icinga.loic.d.enough.community/
  • curl -X DELETE -H "Authorization: Token $ENOUGH_TOKEN" https://api.enough.community/hosted/loic/

Enjoy!

Notes:

  • To see the logs login to api.enough.community and run docker exec -ti tmp_enough-enough_1 journalctl -n 200 -f --unit enough
  • If the POST fails or timesout, retry a few times