mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Update API.md
This commit is contained in:
parent
fa670ef3b9
commit
7139375b43
1 changed files with 2 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ If an authentication store is configured, an authentication token supplied via t
|
||||||
Return codes:
|
Return codes:
|
||||||
* 200 OK
|
* 200 OK
|
||||||
* 404 when sending invalid JSON in the request body or requesting an invalid VM pool name
|
* 404 when sending invalid JSON in the request body or requesting an invalid VM pool name
|
||||||
|
* 503 when the vm failed to allocate a vm, or the pool is empty
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -d '{"debian-7-i386":"2","debian-7-x86_64":"1"}' --url vmpooler.example.com/api/v1/vm
|
$ curl -d '{"debian-7-i386":"2","debian-7-x86_64":"1"}' --url vmpooler.example.com/api/v1/vm
|
||||||
|
|
@ -161,6 +162,7 @@ Check-out a VM or VMs.
|
||||||
Return codes:
|
Return codes:
|
||||||
* 200 OK
|
* 200 OK
|
||||||
* 404 when sending invalid JSON in the request body or requesting an invalid VM pool name
|
* 404 when sending invalid JSON in the request body or requesting an invalid VM pool name
|
||||||
|
* 503 when the vm failed to allocate a vm, or the pool is empty
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -d --url vmpooler.example.com/api/v1/vm/debian-7-i386
|
$ curl -d --url vmpooler.example.com/api/v1/vm/debian-7-i386
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue