2013-09-02 11:58:05 +02:00
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class VcloudDirector
|
|
|
|
class Real
|
|
|
|
require 'fog/vcloud_director/parsers/compute/vm'
|
2013-09-16 18:13:09 +01:00
|
|
|
|
2013-09-27 16:32:49 +01:00
|
|
|
# Retrieve a vApp or VM.
|
|
|
|
#
|
2013-10-01 08:43:28 +01:00
|
|
|
# @note This should probably be deprecated.
|
2013-10-13 20:23:24 +01:00
|
|
|
#
|
2013-10-08 18:46:06 +01:00
|
|
|
# @param [String] id Object identifier of the vApp or VM.
|
2013-09-27 16:32:49 +01:00
|
|
|
# @return [Excon::Response]
|
|
|
|
# * body<~Hash>:
|
2013-10-13 20:23:24 +01:00
|
|
|
#
|
2013-09-27 16:32:49 +01:00
|
|
|
# @see #get_vapp
|
2013-10-08 18:46:06 +01:00
|
|
|
def get_vm(id)
|
2013-09-02 11:58:05 +02:00
|
|
|
request(
|
2013-09-29 18:57:18 +01:00
|
|
|
:expects => 200,
|
|
|
|
:idempotent => true,
|
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::Parsers::Compute::VcloudDirector::Vm.new,
|
2013-10-08 18:46:06 +01:00
|
|
|
:path => "vApp/#{id}"
|
2013-09-02 11:58:05 +02:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|