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/vcloudng/requests/compute/get_vm_metadata.rb
Rodrigo Estebanez 1371c15daf tags implemented
2013-07-03 13:10:31 +02:00

21 lines
506 B
Ruby

module Fog
module Compute
class Vcloudng
class Real
def get_vm_metadata(vm_id)
require 'fog/vcloudng/parsers/compute/metadata'
request(
:expects => 200,
:headers => { 'Accept' => 'application/*+xml;version=1.5' },
:method => 'GET',
:parser => Fog::Parsers::Compute::Vcloudng::Metadata.new,
:path => "vApp/#{vm_id}/metadata/"
)
end
end
end
end
end