2013-06-17 07:46:17 -04:00
|
|
|
module Fog
|
2013-06-18 10:57:32 -04:00
|
|
|
module Compute
|
2013-08-27 05:19:54 -04:00
|
|
|
class VcloudDirector
|
2013-06-17 07:46:17 -04:00
|
|
|
class Real
|
2013-09-27 11:32:49 -04:00
|
|
|
# Retrieve a vApp or VM.
|
|
|
|
#
|
|
|
|
# @param [String] vapp_id ID of the vApp or VM to retrieve.
|
|
|
|
# @return [Excon::Response]
|
|
|
|
# * body<~Hash>:
|
|
|
|
# @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/GET-VApp.html
|
|
|
|
# vCloud API Documentation
|
2013-06-17 07:46:17 -04:00
|
|
|
def get_vapp(vapp_id)
|
|
|
|
request(
|
2013-09-16 13:13:09 -04:00
|
|
|
:expects => 200,
|
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::ToHashDocument.new,
|
|
|
|
:path => "vApp/#{vapp_id}"
|
2013-06-17 07:46:17 -04:00
|
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|