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

24 lines
557 B
Ruby
Raw Normal View History

module Fog
module Compute
class Cloudstack
class Real
# Copies an iso from one zone to another.
#
# {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/copyIso.html]
def copy_iso(id, sourcezoneid, destzoneid, options={})
options.merge!(
'command' => 'copyIso',
'id' => id,
'sourcezoneid' => sourcezoneid,
'destzoneid' => destzoneid
)
request(options)
end
end
end
end
end