lib/rake/proxmox/proxmox_api.rb in rake-proxmox-0.2.1 vs lib/rake/proxmox/proxmox_api.rb in rake-proxmox-0.3.0
- old
+ new
@@ -425,9 +425,14 @@
# cluster Methods
def cluster_resources_get(type)
http_action_get("cluster/resources?type=#{type}")
end
+ # get cluster status
+ def cluster_status
+ http_action_get('cluster/status')
+ end
+
# Backup VM
def vzdump_single(vmid, node = @node, storage = 'local',
mode = 'snapshot', compress = 1, remove = 1, pigz = 1,
lockwait = 5)
data = {