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
|
|
|
|
2013-09-27 11:32:49 -04:00
|
|
|
# Retrieve a vApp or VM.
|
|
|
|
#
|
2013-10-01 03:43:28 -04:00
|
|
|
# @note This should probably be deprecated.
|
2013-10-13 15:23:24 -04:00
|
|
|
#
|
2013-10-08 13:46:06 -04:00
|
|
|
# @param [String] id Object identifier of the vApp or VM.
|
2013-09-27 11:32:49 -04:00
|
|
|
# @return [Excon::Response]
|
|
|
|
# * body<~Hash>:
|
2013-10-13 15:23:24 -04:00
|
|
|
#
|
2013-09-27 11:32:49 -04:00
|
|
|
# @see #get_vapp
|
2013-10-08 13:46:06 -04:00
|
|
|
def get_vms(id)
|
2013-06-20 13:36:34 -04:00
|
|
|
request(
|
2013-09-29 13:57:18 -04:00
|
|
|
:expects => 200,
|
|
|
|
:idempotent => true,
|
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::Parsers::Compute::VcloudDirector::Vms.new,
|
2013-10-08 13:46:06 -04:00
|
|
|
:path => "vApp/#{id}"
|
2013-06-20 13:36:34 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|