1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vcloudng/requests/compute/get_vms.rb

21 lines
467 B
Ruby
Raw Normal View History

2013-06-20 13:36:34 -04:00
module Fog
module Compute
class Vcloudng
class Real
2013-06-24 07:46:30 -04:00
require 'fog/vcloudng/parsers/compute/vm'
2013-06-20 13:36:34 -04:00
2013-06-24 07:46:30 -04:00
def get_vms(vapp_id)
2013-06-20 13:36:34 -04:00
request(
:expects => 200,
:headers => { 'Accept' => 'application/*+xml;version=1.5' },
:method => 'GET',
2013-06-24 07:46:30 -04:00
:parser => Fog::Parsers::Compute::Vcloudng::Vm.new,
2013-06-20 13:36:34 -04:00
:path => "vApp/#{vapp_id}"
)
end
end
end
end
end