mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
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:
parent
56f5945565
commit
9a745ae9ab
4 changed files with 102 additions and 1 deletions
20
docs/API.md
20
docs/API.md
|
|
@ -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 ..."
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue