vmpooler/lib/vmpooler
Scott Schneider 1c9b9e6cbc Support batch (multiple VM) requests
This PR allows a single API request to return multiple VM objects.  It
supports the following formats:

- POST <json> /vm/
  eg. 'curl -d '{"debian-7-i386":"3","debian-7-x86_64":"1"}' --url vmpooler/vm

- POST /vm/<pool>+<pool>+<pool>...
  eg. 'curl -d --url vmpooler/vm/debian-7-i386+debian-7-i386+debian-7-i386+debian-7-x86_64

Both commands listed above will return a JSON hash of 3 debian-7-i386 VMs and
1 debian-7-x86_64 VM:

  {
    "ok": true,
    "debian-7-i386": {
      "hostname": [
        "v49pwwk5yzg6oad",
        "ylghlgote5uso54",
        "wt0c4xovvulo7ge"
      ]
    },
    "debian-7-x86_64": {
      "hostname": "v3dkrulttp360fm"
    }
  }
2014-06-09 15:15:05 -07:00
..
public Add textured backgrounds to SVG area pathes 2014-03-11 12:49:42 -07:00
views Reworked into a single namespaced Ruby application 2014-03-05 12:57:25 -08:00
api.rb Support batch (multiple VM) requests 2014-06-09 15:15:05 -07:00
graphite.rb Reworked into a single namespaced Ruby application 2014-03-05 12:57:25 -08:00
logger.rb Reworked into a single namespaced Ruby application 2014-03-05 12:57:25 -08:00
pool_manager.rb Allow a configurable Graphite namespace (prefix) 2014-03-06 10:53:27 -08:00
vsphere_helper.rb Centralize external Gem loading 2014-03-05 13:19:43 -08:00