Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #7 from papamoose/nextvmid

Added functions to get the next virtual machine ID.
  • Loading branch information...
commit 4b22ae72a01c1bb89d666695cec8dbc12eea7667 2 parents 3abe665 + f6ff0cf
@Daemonthread authored
Showing with 7 additions and 0 deletions.
  1. +3 −0  README.md
  2. +4 −0 src/pyproxmox.py
View
3  README.md
@@ -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
4 src/pyproxmox.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.