Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pve2_api.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,48 @@ public function get_node_list () {
return $this->pve_cluster_node_list;
}


/*
Get Last VMID from a Cluster or a Node

return an VMID
*/

public function get_next_vmid() {
if (!$this->constructor_success) {
return false;
}
$vmid = $this->pve_action("/cluster/nextid","GET");
if ($vmid == null)
{
return false;
}else {
return $vmid;
}

/*
Return the version and minor revision of Proxmox Server
*/


public function get_version() {
if (!$this->constructor_success) {
return false;
}
$version = $this->pve_action("/version","GET");
if ($version == null)
{
return false;
}else {
return $version['version'];
}


}




/*
* object/array? get (string action_path)
*/
Expand Down