2013-06-20 19:36:34 +02:00
|
|
|
module Fog
|
|
|
|
module Compute
|
2013-08-27 11:19:54 +02:00
|
|
|
class VcloudDirector
|
2013-06-20 19:36:34 +02:00
|
|
|
class Real
|
2013-09-02 11:58:05 +02:00
|
|
|
require 'fog/vcloud_director/parsers/compute/vms'
|
2013-09-16 18:13:09 +01:00
|
|
|
|
2013-09-27 16:32:49 +01:00
|
|
|
# Retrieve a vApp or VM.
|
|
|
|
#
|
|
|
|
# @param [String] vapp_id
|
|
|
|
# @return [Excon::Response]
|
|
|
|
# * body<~Hash>:
|
|
|
|
# @see #get_vapp
|
2013-06-24 13:46:30 +02:00
|
|
|
def get_vms(vapp_id)
|
2013-06-20 19:36:34 +02:00
|
|
|
request(
|
2013-09-16 18:13:09 +01:00
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::Parsers::Compute::VcloudDirector::Vms.new,
|
|
|
|
:path => "vApp/#{vapp_id}"
|
2013-06-20 19:36:34 +02:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|