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/vcloud_director/requests/compute/get_vms.rb

29 lines
707 B
Ruby
Raw Normal View History

2013-06-20 13:36:34 -04:00
module Fog
module Compute
2013-08-27 05:19:54 -04:00
class VcloudDirector
2013-06-20 13:36:34 -04:00
class Real
2013-09-02 05:58:05 -04:00
require 'fog/vcloud_director/parsers/compute/vms'
2013-09-16 13:13:09 -04:00
# Retrieve a vApp or VM.
#
# @note This should probably be deprecated.
#
# @param [String] id Object identifier of the vApp or VM.
# @return [Excon::Response]
# * body<~Hash>:
#
# @see #get_vapp
def get_vms(id)
2013-06-20 13:36:34 -04:00
request(
:expects => 200,
:idempotent => true,
:method => 'GET',
:parser => Fog::Parsers::Compute::VcloudDirector::Vms.new,
:path => "vApp/#{id}"
2013-06-20 13:36:34 -04:00
)
end
end
end
end
end