Restart API endpoint

Redis configuration added to backend method
Manager instance now restarts
Logger included in metrics
Spec test added
API doc updated
This commit is contained in:
Tanisha Payne 2021-05-27 10:06:02 -04:00
parent 56f5945565
commit 9a745ae9ab
4 changed files with 102 additions and 1 deletions

View file

@ -890,3 +890,23 @@ $ curl -X DELETE https://vmpooler.example.com/api/v1/ondemandvm/e3ff6271-d201-4f
"ok": true
}
```
##### GET /restart
Restart vmpooler
An authentication token is required from an authorized user.
Responses:
* 200 - The restart was successful and status is ok
* 404 - No auth token provided, or provided auth token is not valid
```
$ curl -X GET -H X-AUTH-TOKEN:a9znth9dn01t416hrguu56ze37t790bl --url https://vmpooler.example.com/restart
```
```json
{
"ok": true
"message": "Restarting ..."
}
```