mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Adding 'GET /vm/<hostname>' documentation
This commit is contained in:
parent
489abd713a
commit
ce50f450f5
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -143,6 +143,25 @@ $ curl -d --url vmpooler.company.com/vm/debian-7-i386+debian-7-i386+debian-7-x86
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### GET /vm/<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/<hostname>
|
#### PUT /vm/<hostname>
|
||||||
|
|
||||||
Modify a checked-out VM.
|
Modify a checked-out VM.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue