Method: OpenNebula::VirtualMachine#disk_saveas
- Defined in:
- lib/opennebula/virtual_machine.rb
#disk_saveas(disk_id, image_name, image_type = "", snap_id = -1)) ⇒ Integer, OpenNebula::Error
Set the specified vm’s disk to be saved as a new image
current disk image state
500 501 502 503 504 505 506 507 508 509 510 |
# File 'lib/opennebula/virtual_machine.rb', line 500 def disk_saveas(disk_id, image_name, image_type="", snap_id=-1) return Error.new('ID not defined') if !@pe_id rc = @client.call(VM_METHODS[:disksaveas], @pe_id, disk_id, image_name, image_type, snap_id) return rc end |