Adding 'GET /vm/<hostname>' documentation

This commit is contained in:
Scott Schneider 2014-11-03 13:13:34 -08:00
parent 489abd713a
commit ce50f450f5

View file

@ -143,6 +143,25 @@ $ curl -d --url vmpooler.company.com/vm/debian-7-i386+debian-7-i386+debian-7-x86
}
```
#### GET /vm/&lt;hostname%gt;
Query a checked-out VM.
```
$ curl --url vmpooler.company.com/vm/pxpmtoonx7fiqg6
```
```json
{
"ok": true,
"pxpmtoonx7fiqg6": {
"template": "centos-6-x86_64",
"lifetime": 12,
"running": 3,
"domain": "company.com"
}
}
```
#### PUT /vm/&lt;hostname&gt;
Modify a checked-out VM.