lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb
module Fog
module Compute
class VcloudDirector
class Real
# Retrieve metadata associated with the vApp template or VM.
#
# @param [String] id Object identifier of the vApp template 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-VAppTemplateMetadata.html
# @since vCloud API version 1.5
def get_vapp_template_metadata(id)
request(
:expects => 200,
:idempotent => true,
:method => 'GET',
:parser => Fog::ToHashDocument.new,
:path => "vAppTemplate/#{id}/metadata/"
)
end
end
end
end
end