fog--fog/lib/fog/cloudstack/requests/compute/start_system_vm.rb

26 lines
601 B
Ruby

module Fog
module Compute
class Cloudstack
class Real
# Starts a system virtual machine.
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/startSystemVm.html]
def start_system_vm(*args)
options = {}
if args[0].is_a? Hash
options = args[0]
options.merge!('command' => 'startSystemVm')
else
options.merge!('command' => 'startSystemVm',
'id' => args[0])
end
request(options)
end
end
end
end
end