Untitled

 avatar
unknown
python
4 years ago
463 B
6
Indexable
post request to:

https://35.200.88.97:8000/api/0.1/command-action

Headers:
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNyZXQiOiJINHJtT28xUy12RnNyckUxTi03RzAxUG9DVy1vc2g2UnFlZCJ9.mRZLeuzHeNz_QR3G0XOp7b81JhkMNUpMkC_AJ6cnDnw

Body: 
{
    "command": "status"
}

command list:
status = cek status nginx dan apache
activate = stop apache (frepple) dan start nginx
deactivate = stop nginx dan start apache (frepple)
Editor is loading...