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/post_vm_poweron.rb
Rodrigo Estebanez 86d6bdd125 power_on a vm
2013-07-05 14:35:23 +02:00

19 lines
462 B
Ruby

module Fog
module Compute
class Vcloudng
class Real
def post_vm_poweron(vm_id)
request(
:expects => 202,
:headers => { 'Accept' => 'application/*+xml;version=1.5' },
:method => 'POST',
:parser => Fog::ToHashDocument.new,
:path => "vApp/#{vm_id}/power/action/powerOn"
)
end
end
end
end
end