mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Adding docs for PUT modifications
Also: cleaning up a little bit.
This commit is contained in:
parent
ae97bb1ecc
commit
3a5e8d3bcf
1 changed files with 17 additions and 2 deletions
19
README.md
19
README.md
|
|
@ -85,6 +85,7 @@ $ curl --url vmpooler.company.com/vm
|
||||||
```
|
```
|
||||||
|
|
||||||
#### POST /vm
|
#### POST /vm
|
||||||
|
|
||||||
Useful for batch operations; post JSON (see format below), get back VMs.
|
Useful for batch operations; post JSON (see format below), get back VMs.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
@ -105,7 +106,8 @@ $ curl -d '{"debian-7-i386":"2","debian-7-x86_64":"1"}' --url vmpooler.company.c
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### POST /vm/<pool>
|
#### POST /vm/<pool>
|
||||||
|
|
||||||
Check-out a VM or VMs.
|
Check-out a VM or VMs.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
@ -141,7 +143,20 @@ $ curl -d --url vmpooler.company.com/vm/debian-7-i386+debian-7-i386+debian-7-x86
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
#### DELETE /vm/<hostnamename>
|
#### PUT /vm/<hostname>
|
||||||
|
|
||||||
|
Modify a checked-out VM.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ curl -X PUT -d '{"lifetime":"2"}' --url vmpooler.company.com/vm/fq6qlpjlsskycq6
|
||||||
|
```
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"ok": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### DELETE /vm/<hostname>
|
||||||
|
|
||||||
Schedule a checked-out VM for deletion.
|
Schedule a checked-out VM for deletion.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue