From ce50f450f59baf9594ce8af6402af681c5509d96 Mon Sep 17 00:00:00 2001 From: Scott Schneider Date: Mon, 3 Nov 2014 13:13:34 -0800 Subject: [PATCH] Adding 'GET /vm/' documentation --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 574139a..b06717d 100644 --- a/README.md +++ b/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> Modify a checked-out VM.