Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added functions to get the next virtual machine ID.

This is currently not documented in the api.
  • Loading branch information...
commit f6ff0cfee5cc241d888bb11e1b6f8de608903991 1 parent 3abe665
@papamoose papamoose 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.