Skip to content
This repository has been archived by the owner on Nov 26, 2017. It is now read-only.

Commit

Permalink
Added functions to get the next virtual machine ID.
Browse files Browse the repository at this point in the history
This is currently not documented in the api.
  • Loading branch information
papamoose committed Apr 2, 2013
1 parent 3abe665 commit f6ff0cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/pyproxmox.py
Expand Up @@ -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
Expand Down

0 comments on commit f6ff0cf

Please sign in to comment.