Permalink
Browse files

Merge pull request #7 from papamoose/nextvmid

Added functions to get the next virtual machine ID.
  • Loading branch information...
2 parents 3abe665 + f6ff0cf commit 4b22ae72a01c1bb89d666695cec8dbc12eea7667 @Daemonthread committed Apr 7, 2013
Showing with 7 additions and 0 deletions.
  1. +3 −0 README.md
  2. +4 −0 src/pyproxmox.py
View
@@ -56,6 +56,9 @@ For more information on the accepted variables please see http//pve.proxmox.com/
getClusterBackupSchedule()
"List vzdump backup schedule. Returns JSON"
+ getClusterVmNextId()
+"Get next VM ID of cluster. Returns JSON"
+
##### Node Methods
getNodeNetworks(node)
"List available networks. Returns JSON"
View
@@ -117,6 +117,10 @@ def getClusterBackupSchedule(self):
data = self.connect('get','cluster/backup',None)
return data
+ def getClusterVmNextId(self):
+ """Get next VM ID of cluster. Returns JSON"""
+ data = self.connect('get','cluster/nextid',None)
+ return data
# Node Methods

0 comments on commit 4b22ae7

Please sign in to comment.