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

27 lines
770 B
Ruby

module Fog
module Compute
class Cloudstack
class Real
# Scale the service offering for a system vm (console proxy or secondary storage). The system vm must be in a "Stopped" state for this command to take effect.
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/scaleSystemVm.html]
def scale_system_vm(*args)
options = {}
if args[0].is_a? Hash
options = args[0]
options.merge!('command' => 'scaleSystemVm')
else
options.merge!('command' => 'scaleSystemVm',
'serviceofferingid' => args[0],
'id' => args[1])
end
request(options)
end
end
end
end
end