lib/rake/proxmox/proxmox_api.rb in rake-proxmox-0.5.1 vs lib/rake/proxmox/proxmox_api.rb in rake-proxmox-0.6.0
- old
+ new
@@ -484,9 +484,14 @@
# list storage
def list_storage(node = @node, storage = 'local')
http_action_get("nodes/#{node}/storage/#{storage}/content")
end
+ # delete volume from storage
+ def storage_volume_delete(volume, node = @node, storage = 'local')
+ http_action_delete "nodes/#{node}/storage/#{storage}/content/#{volume}"
+ end
+
# get backup job list
def fetch_backup_jobs
http_action_get('cluster/backup')
end