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_vapp.rb

26 lines
698 B
Ruby
Raw Normal View History

module Fog
2013-06-18 10:57:32 -04:00
module Compute
2013-08-27 05:19:54 -04:00
class VcloudDirector
class Real
# Retrieve a vApp or VM.
#
# @param [String] id Object identifier of the vApp or VM.
# @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
# @since vCloud API version 0.9
def get_vapp(id)
request(
:expects => 200,
:idempotent => true,
:method => 'GET',
:parser => Fog::ToHashDocument.new,
:path => "vApp/#{id}"
)
end
end
end
end
end