diff --git a/src/Client.php b/src/Client.php index 38d4d32..20d1157 100644 --- a/src/Client.php +++ b/src/Client.php @@ -1117,7 +1117,7 @@ public function delnode() } /** - * Adds a node to the cluster configuration. + * Adds a node to the cluster configuration. This call is for internal use. * @param bool $force Do not throw error if node already exists. * @param int $nodeid Node id for this node. * @param string $ring0_addr Hostname (or IP) of the corosync ring0 address of this node. @@ -1136,7 +1136,7 @@ public function createRest($force = null, $nodeid = null, $ring0_addr = null, $r } /** - * Adds a node to the cluster configuration. + * Adds a node to the cluster configuration. This call is for internal use. * @param bool $force Do not throw error if node already exists. * @param int $nodeid Node id for this node. * @param string $ring0_addr Hostname (or IP) of the corosync ring0 address of this node. @@ -3942,7 +3942,7 @@ public function getOptions() * @param string $keyboard Default keybord layout for vnc server. * Enum: de,de-ch,da,en-gb,en-us,es,fi,fr,fr-be,fr-ca,fr-ch,hu,is,it,ja,lt,mk,nl,no,pl,pt,pt-br,sv,sl,tr * @param string $language Default GUI language. - * Enum: en,de + * Enum: zh_CN,zh_TW,ca,en,eu,fr,de,it,es,ja,nb,nn,fa,pl,pt_BR,ru,sl,sv,tr * @param string $mac_prefix Prefix for autogenerated MAC addresses. * @param int $max_workers Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager. * @param string $migration For cluster wide migration settings. @@ -3979,7 +3979,7 @@ public function setRest($bwlimit = null, $console = null, $delete = null, $email * @param string $keyboard Default keybord layout for vnc server. * Enum: de,de-ch,da,en-gb,en-us,es,fi,fr,fr-be,fr-ca,fr-ch,hu,is,it,ja,lt,mk,nl,no,pl,pt,pt-br,sv,sl,tr * @param string $language Default GUI language. - * Enum: en,de + * Enum: zh_CN,zh_TW,ca,en,eu,fr,de,it,es,ja,nb,nn,fa,pl,pt_BR,ru,sl,sv,tr * @param string $mac_prefix Prefix for autogenerated MAC addresses. * @param int $max_workers Defines how many workers (per node) are maximal started on actions like 'stopall VMs' or task from the ha-manager. * @param string $migration For cluster wide migration settings. @@ -4250,6 +4250,20 @@ public function getScan() return $this->scan ?: ($this->scan = new PVENodeNodesScan($this->client, $this->node)); } + /** + * @ignore + */ + private $hardware; + + /** + * Get NodeNodesHardware + * @return PVENodeNodesHardware + */ + public function getHardware() + { + return $this->hardware ?: ($this->hardware = new PVENodeNodesHardware($this->client, $this->node)); + } + /** * @ignore */ @@ -4600,6 +4614,20 @@ public function getMigrateall() return $this->migrateall ?: ($this->migrateall = new PVENodeNodesMigrateall($this->client, $this->node)); } + /** + * @ignore + */ + private $hosts; + + /** + * Get NodeNodesHosts + * @return PVENodeNodesHosts + */ + public function getHosts() + { + return $this->hosts ?: ($this->hosts = new PVENodeNodesHosts($this->client, $this->node)); + } + /** * Node index. * @return Result @@ -4674,7 +4702,9 @@ public function vmlist($full = null) * Create or restore a virtual machine. * @param int $vmid The (unique) ID of the VM. * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $archive The backup file. * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). @@ -4694,6 +4724,7 @@ public function vmlist($full = null) * @param int $cpulimit Limit of CPU usage. * @param int $cpuunits CPU weight for a VM. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Allow to overwrite existing VM. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -4708,7 +4739,7 @@ public function vmlist($full = null) * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -4746,18 +4777,19 @@ public function vmlist($full = null) * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function createRest($vmid, $acpi = null, $agent = null, $archive = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tdf = null, $template = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function createRest($vmid, $acpi = null, $agent = null, $arch = null, $archive = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tdf = null, $template = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { $params = ['vmid' => $vmid, 'acpi' => $acpi, 'agent' => $agent, + 'arch' => $arch, 'archive' => $archive, 'args' => $args, 'autostart' => $autostart, @@ -4775,6 +4807,7 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, 'cpulimit' => $cpulimit, 'cpuunits' => $cpuunits, 'description' => $description, + 'efidisk0' => $efidisk0, 'force' => $force, 'freeze' => $freeze, 'hotplug' => $hotplug, @@ -4812,6 +4845,7 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, 'unique' => $unique, 'vcpus' => $vcpus, 'vga' => $vga, + 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, 'watchdog' => $watchdog]; $this->addIndexedParameter($params, 'hostpci', $hostpciN); @@ -4833,7 +4867,9 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, * Create or restore a virtual machine. * @param int $vmid The (unique) ID of the VM. * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $archive The backup file. * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). @@ -4853,6 +4889,7 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, * @param int $cpulimit Limit of CPU usage. * @param int $cpuunits CPU weight for a VM. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Allow to overwrite existing VM. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -4867,7 +4904,7 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -4905,16 +4942,16 @@ public function createRest($vmid, $acpi = null, $agent = null, $archive = null, * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function createVm($vmid, $acpi = null, $agent = null, $archive = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tdf = null, $template = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function createVm($vmid, $acpi = null, $agent = null, $arch = null, $archive = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $bwlimit = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $description = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $pool = null, $protection = null, $reboot = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $start = null, $startdate = null, $startup = null, $storage = null, $tablet = null, $tdf = null, $template = null, $unique = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - return $this->createRest($vmid, $acpi, $agent, $archive, $args, $autostart, $balloon, $bios, $boot, $bootdisk, $bwlimit, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $description, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $pool, $protection, $reboot, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $smbios1, $smp, $sockets, $sshkeys, $start, $startdate, $startup, $storage, $tablet, $tdf, $template, $unique, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmstatestorage, $watchdog); + return $this->createRest($vmid, $acpi, $agent, $arch, $archive, $args, $autostart, $balloon, $bios, $boot, $bootdisk, $bwlimit, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $description, $efidisk0, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $pool, $protection, $reboot, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $smbios1, $smp, $sockets, $sshkeys, $start, $startdate, $startup, $storage, $tablet, $tdf, $template, $unique, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmgenid, $vmstatestorage, $watchdog); } } @@ -6631,6 +6668,76 @@ public function getSuspend_Ram() return $this->suspend_Ram ?: ($this->suspend_Ram = new PVEAgentVmidQemuNodeNodesSuspend_Ram($this->client, $this->node, $this->vmid)); } + /** + * @ignore + */ + private $set_User_Password; + + /** + * Get AgentVmidQemuNodeNodesSet_User_Password + * @return PVEAgentVmidQemuNodeNodesSet_User_Password + */ + public function getSet_User_Password() + { + return $this->set_User_Password ?: ($this->set_User_Password = new PVEAgentVmidQemuNodeNodesSet_User_Password($this->client, $this->node, $this->vmid)); + } + + /** + * @ignore + */ + private $exec; + + /** + * Get AgentVmidQemuNodeNodesExec + * @return PVEAgentVmidQemuNodeNodesExec + */ + public function getExec() + { + return $this->exec ?: ($this->exec = new PVEAgentVmidQemuNodeNodesExec($this->client, $this->node, $this->vmid)); + } + + /** + * @ignore + */ + private $exec_Status; + + /** + * Get AgentVmidQemuNodeNodesExec_Status + * @return PVEAgentVmidQemuNodeNodesExec_Status + */ + public function getExec_Status() + { + return $this->exec_Status ?: ($this->exec_Status = new PVEAgentVmidQemuNodeNodesExec_Status($this->client, $this->node, $this->vmid)); + } + + /** + * @ignore + */ + private $file_Read; + + /** + * Get AgentVmidQemuNodeNodesFile_Read + * @return PVEAgentVmidQemuNodeNodesFile_Read + */ + public function getFile_Read() + { + return $this->file_Read ?: ($this->file_Read = new PVEAgentVmidQemuNodeNodesFile_Read($this->client, $this->node, $this->vmid)); + } + + /** + * @ignore + */ + private $file_Write; + + /** + * Get AgentVmidQemuNodeNodesFile_Write + * @return PVEAgentVmidQemuNodeNodesFile_Write + */ + public function getFile_Write() + { + return $this->file_Write ?: ($this->file_Write = new PVEAgentVmidQemuNodeNodesFile_Write($this->client, $this->node, $this->vmid)); + } + /** * Qemu Agent command index. * @return Result @@ -7553,6 +7660,250 @@ public function suspend_Ram() } } + /** + * Class PVEAgentVmidQemuNodeNodesSet_User_Password + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEAgentVmidQemuNodeNodesSet_User_Password extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $vmid; + + /** + * @ignore + */ + function __construct($client, $node, $vmid) + { + $this->client = $client; + $this->node = $node; + $this->vmid = $vmid; + } + + /** + * Sets the password for the given user to the given password + * @param string $password The new password. + * @param string $username The user to set the password for. + * @param bool $crypted set to 1 if the password has already been passed through crypt() + * @return Result + */ + public function createRest($password, $username, $crypted = null) + { + $params = ['password' => $password, + 'username' => $username, + 'crypted' => $crypted]; + return $this->getClient()->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/set-user-password", $params); + } + + /** + * Sets the password for the given user to the given password + * @param string $password The new password. + * @param string $username The user to set the password for. + * @param bool $crypted set to 1 if the password has already been passed through crypt() + * @return Result + */ + public function set_User_Password($password, $username, $crypted = null) + { + return $this->createRest($password, $username, $crypted); + } + } + + /** + * Class PVEAgentVmidQemuNodeNodesExec + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEAgentVmidQemuNodeNodesExec extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $vmid; + + /** + * @ignore + */ + function __construct($client, $node, $vmid) + { + $this->client = $client; + $this->node = $node; + $this->vmid = $vmid; + } + + /** + * Executes the given command in the vm via the guest-agent and returns an object with the pid. + * @param string $command The command as a list of program + arguments + * @return Result + */ + public function createRest($command) + { + $params = ['command' => $command]; + return $this->getClient()->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/exec", $params); + } + + /** + * Executes the given command in the vm via the guest-agent and returns an object with the pid. + * @param string $command The command as a list of program + arguments + * @return Result + */ + public function exec($command) + { + return $this->createRest($command); + } + } + + /** + * Class PVEAgentVmidQemuNodeNodesExec_Status + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEAgentVmidQemuNodeNodesExec_Status extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $vmid; + + /** + * @ignore + */ + function __construct($client, $node, $vmid) + { + $this->client = $client; + $this->node = $node; + $this->vmid = $vmid; + } + + /** + * Gets the status of the given pid started by the guest-agent + * @param int $pid The PID to query + * @return Result + */ + public function getRest($pid) + { + $params = ['pid' => $pid]; + return $this->getClient()->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/exec-status", $params); + } + + /** + * Gets the status of the given pid started by the guest-agent + * @param int $pid The PID to query + * @return Result + */ + public function exec_Status($pid) + { + return $this->getRest($pid); + } + } + + /** + * Class PVEAgentVmidQemuNodeNodesFile_Read + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEAgentVmidQemuNodeNodesFile_Read extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $vmid; + + /** + * @ignore + */ + function __construct($client, $node, $vmid) + { + $this->client = $client; + $this->node = $node; + $this->vmid = $vmid; + } + + /** + * Reads the given file via guest agent. Is limited to 16777216 bytes. + * @param string $file The path to the file + * @return Result + */ + public function getRest($file) + { + $params = ['file' => $file]; + return $this->getClient()->get("/nodes/{$this->node}/qemu/{$this->vmid}/agent/file-read", $params); + } + + /** + * Reads the given file via guest agent. Is limited to 16777216 bytes. + * @param string $file The path to the file + * @return Result + */ + public function file_Read($file) + { + return $this->getRest($file); + } + } + + /** + * Class PVEAgentVmidQemuNodeNodesFile_Write + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEAgentVmidQemuNodeNodesFile_Write extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $vmid; + + /** + * @ignore + */ + function __construct($client, $node, $vmid) + { + $this->client = $client; + $this->node = $node; + $this->vmid = $vmid; + } + + /** + * Writes the given file via guest agent. + * @param string $content The content to write into the file. + * @param string $file The path to the file. + * @return Result + */ + public function createRest($content, $file) + { + $params = ['content' => $content, + 'file' => $file]; + return $this->getClient()->create("/nodes/{$this->node}/qemu/{$this->vmid}/agent/file-write", $params); + } + + /** + * Writes the given file via guest agent. + * @param string $content The content to write into the file. + * @param string $file The path to the file. + * @return Result + */ + public function file_Write($content, $file) + { + return $this->createRest($content, $file); + } + } + /** * Class PVEVmidQemuNodeNodesRrd * @package EnterpriseVE\ProxmoxVE\Api @@ -7713,7 +8064,9 @@ public function vmConfig($current = null) /** * Set virtual machine options (asynchrounous API). * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). * @param int $background_delay Time to wait for the task to finish. We return 'null' if the task finish within that time. @@ -7734,6 +8087,7 @@ public function vmConfig($current = null) * @param string $delete A list of settings you want to delete. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -7748,7 +8102,7 @@ public function vmConfig($current = null) * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -7784,17 +8138,18 @@ public function vmConfig($current = null) * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function createRest($acpi = null, $agent = null, $args = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function createRest($acpi = null, $agent = null, $arch = null, $args = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { $params = ['acpi' => $acpi, 'agent' => $agent, + 'arch' => $arch, 'args' => $args, 'autostart' => $autostart, 'background_delay' => $background_delay, @@ -7813,6 +8168,7 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart 'delete' => $delete, 'description' => $description, 'digest' => $digest, + 'efidisk0' => $efidisk0, 'force' => $force, 'freeze' => $freeze, 'hotplug' => $hotplug, @@ -7848,6 +8204,7 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart 'template' => $template, 'vcpus' => $vcpus, 'vga' => $vga, + 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, 'watchdog' => $watchdog]; $this->addIndexedParameter($params, 'hostpci', $hostpciN); @@ -7868,7 +8225,9 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart /** * Set virtual machine options (asynchrounous API). * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). * @param int $background_delay Time to wait for the task to finish. We return 'null' if the task finish within that time. @@ -7889,6 +8248,7 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart * @param string $delete A list of settings you want to delete. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -7903,7 +8263,7 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -7939,22 +8299,24 @@ public function createRest($acpi = null, $agent = null, $args = null, $autostart * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function updateVmAsync($acpi = null, $agent = null, $args = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function updateVmAsync($acpi = null, $agent = null, $arch = null, $args = null, $autostart = null, $background_delay = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - return $this->createRest($acpi, $agent, $args, $autostart, $background_delay, $balloon, $bios, $boot, $bootdisk, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $delete, $description, $digest, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $protection, $reboot, $revert, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $skiplock, $smbios1, $smp, $sockets, $sshkeys, $startdate, $startup, $tablet, $tdf, $template, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmstatestorage, $watchdog); + return $this->createRest($acpi, $agent, $arch, $args, $autostart, $background_delay, $balloon, $bios, $boot, $bootdisk, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $delete, $description, $digest, $efidisk0, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $protection, $reboot, $revert, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $skiplock, $smbios1, $smp, $sockets, $sshkeys, $startdate, $startup, $tablet, $tdf, $template, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmgenid, $vmstatestorage, $watchdog); } /** * Set virtual machine options (synchrounous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). * @param int $balloon Amount of target RAM for the VM in MB. Using zero disables the ballon driver. @@ -7974,6 +8336,7 @@ public function updateVmAsync($acpi = null, $agent = null, $args = null, $autost * @param string $delete A list of settings you want to delete. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -7988,7 +8351,7 @@ public function updateVmAsync($acpi = null, $agent = null, $args = null, $autost * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -8024,17 +8387,18 @@ public function updateVmAsync($acpi = null, $agent = null, $args = null, $autost * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function setRest($acpi = null, $agent = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function setRest($acpi = null, $agent = null, $arch = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { $params = ['acpi' => $acpi, 'agent' => $agent, + 'arch' => $arch, 'args' => $args, 'autostart' => $autostart, 'balloon' => $balloon, @@ -8052,6 +8416,7 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = 'delete' => $delete, 'description' => $description, 'digest' => $digest, + 'efidisk0' => $efidisk0, 'force' => $force, 'freeze' => $freeze, 'hotplug' => $hotplug, @@ -8087,6 +8452,7 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = 'template' => $template, 'vcpus' => $vcpus, 'vga' => $vga, + 'vmgenid' => $vmgenid, 'vmstatestorage' => $vmstatestorage, 'watchdog' => $watchdog]; $this->addIndexedParameter($params, 'hostpci', $hostpciN); @@ -8107,7 +8473,9 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = /** * Set virtual machine options (synchrounous API) - You should consider using the POST method instead for any actions involving hotplug or storage allocation. * @param bool $acpi Enable/disable ACPI. - * @param bool $agent Enable/disable Qemu GuestAgent. + * @param string $agent Enable/disable Qemu GuestAgent and its properties. + * @param string $arch Virtual processor architecture. Defaults to the host. + * Enum: x86_64,aarch64 * @param string $args Arbitrary arguments passed to kvm. * @param bool $autostart Automatic restart after crash (currently ignored). * @param int $balloon Amount of target RAM for the VM in MB. Using zero disables the ballon driver. @@ -8127,6 +8495,7 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = * @param string $delete A list of settings you want to delete. * @param string $description Description for the VM. Only used on the configuration web interface. This is saved as comment inside the configuration file. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $efidisk0 Configure a Disk for storing EFI vars * @param bool $force Force physical removal. Without this, we simple remove the disk from the config file and create an additional configuration entry called 'unused[n]', which contains the volume ID. Unlink of unused[n] always cause physical removal. * @param bool $freeze Freeze CPU at startup (use 'c' monitor command to start execution). * @param array $hostpciN Map host PCI devices into guest. @@ -8141,7 +8510,7 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = * @param bool $localtime Set the real time clock to local time. This is enabled by default if ostype indicates a Microsoft OS. * @param string $lock Lock/unlock the VM. * Enum: migrate,backup,snapshot,rollback - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param int $memory Amount of RAM for the VM in MB. This is the maximum available memory when you use the balloon device. * @param int $migrate_downtime Set maximum tolerated downtime (in seconds) for migrations. * @param int $migrate_speed Set maximum speed (in MB/s) for migrations. Value 0 is no limit. @@ -8177,16 +8546,16 @@ public function setRest($acpi = null, $agent = null, $args = null, $autostart = * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @param array $usbN Configure an USB device (n is 0 to 4). * @param int $vcpus Number of hotplugged vcpus. - * @param string $vga Select the VGA type. - * Enum: std,cirrus,vmware,qxl,serial0,serial1,serial2,serial3,qxl2,qxl3,qxl4 + * @param string $vga Configure the VGA hardware. * @param array $virtioN Use volume as VIRTIO hard disk (n is 0 to 15). + * @param string $vmgenid Set VM Generation ID. Use '1' to autogenerate on create or update, pass '0' to disable explicitly. * @param string $vmstatestorage Default storage for VM state volumes/files. * @param string $watchdog Create a virtual hardware watchdog device. * @return Result */ - public function updateVm($acpi = null, $agent = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmstatestorage = null, $watchdog = null) + public function updateVm($acpi = null, $agent = null, $arch = null, $args = null, $autostart = null, $balloon = null, $bios = null, $boot = null, $bootdisk = null, $cdrom = null, $cipassword = null, $citype = null, $ciuser = null, $cores = null, $cpu = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $efidisk0 = null, $force = null, $freeze = null, $hostpciN = null, $hotplug = null, $hugepages = null, $ideN = null, $ipconfigN = null, $keyboard = null, $kvm = null, $localtime = null, $lock = null, $machine = null, $memory = null, $migrate_downtime = null, $migrate_speed = null, $name = null, $nameserver = null, $netN = null, $numa = null, $numaN = null, $onboot = null, $ostype = null, $parallelN = null, $protection = null, $reboot = null, $revert = null, $sataN = null, $scsiN = null, $scsihw = null, $searchdomain = null, $serialN = null, $shares = null, $skiplock = null, $smbios1 = null, $smp = null, $sockets = null, $sshkeys = null, $startdate = null, $startup = null, $tablet = null, $tdf = null, $template = null, $unusedN = null, $usbN = null, $vcpus = null, $vga = null, $virtioN = null, $vmgenid = null, $vmstatestorage = null, $watchdog = null) { - return $this->setRest($acpi, $agent, $args, $autostart, $balloon, $bios, $boot, $bootdisk, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $delete, $description, $digest, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $protection, $reboot, $revert, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $skiplock, $smbios1, $smp, $sockets, $sshkeys, $startdate, $startup, $tablet, $tdf, $template, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmstatestorage, $watchdog); + return $this->setRest($acpi, $agent, $arch, $args, $autostart, $balloon, $bios, $boot, $bootdisk, $cdrom, $cipassword, $citype, $ciuser, $cores, $cpu, $cpulimit, $cpuunits, $delete, $description, $digest, $efidisk0, $force, $freeze, $hostpciN, $hotplug, $hugepages, $ideN, $ipconfigN, $keyboard, $kvm, $localtime, $lock, $machine, $memory, $migrate_downtime, $migrate_speed, $name, $nameserver, $netN, $numa, $numaN, $onboot, $ostype, $parallelN, $protection, $reboot, $revert, $sataN, $scsiN, $scsihw, $searchdomain, $serialN, $shares, $skiplock, $smbios1, $smp, $sockets, $sshkeys, $startdate, $startup, $tablet, $tdf, $template, $unusedN, $usbN, $vcpus, $vga, $virtioN, $vmgenid, $vmstatestorage, $watchdog); } } @@ -8457,7 +8826,7 @@ function __construct($client, $node, $vmid) /** * Returns a SPICE configuration to connect to the VM. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ public function createRest($proxy = null) @@ -8468,7 +8837,7 @@ public function createRest($proxy = null) /** * Returns a SPICE configuration to connect to the VM. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ public function spiceproxy($proxy = null) @@ -8690,7 +9059,7 @@ function __construct($client, $node, $vmid) /** * Start virtual machine. - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param string $migratedfrom The cluster node name. * @param string $migration_network CIDR of the (sub) network that is used for migration. * @param string $migration_type Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance. @@ -8714,7 +9083,7 @@ public function createRest($machine = null, $migratedfrom = null, $migration_net /** * Start virtual machine. - * @param string $machine Specific the Qemu machine type. + * @param string $machine Specifies the Qemu machine type. * @param string $migratedfrom The cluster node name. * @param string $migration_network CIDR of the (sub) network that is used for migration. * @param string $migration_type Migration traffic is encrypted using an SSH tunnel by default. On secure, completely private networks this can be disabled to increase performance. @@ -9796,7 +10165,7 @@ public function vmlist() * @param string $ostemplate The OS template or backup file. * @param int $vmid The (unique) ID of the VM. * @param string $arch OS architecture type. - * Enum: amd64,i386 + * Enum: amd64,i386,arm64,armhf * @param int $bwlimit Override i/o bandwidth limit (in KiB/s). * @param string $cmode Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). * Enum: shell,console,tty @@ -9805,11 +10174,12 @@ public function vmlist() * @param int $cpulimit Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. * @param int $cpuunits CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs. NOTE: You can disable fair-scheduler configuration by setting this to 0. * @param string $description Container description. Only used on the configuration web interface. + * @param string $features Allow containers access to advanced features. * @param bool $force Allow to overwrite existing container. * @param string $hostname Set a host name for the container. * @param bool $ignore_unpack_errors Ignore errors when extracting the template. * @param string $lock Lock/unlock the VM. - * Enum: migrate,backup,snapshot,rollback + * Enum: backup,disk,migrate,mounted,rollback,snapshot,snapshot-delete * @param int $memory Amount of RAM for the VM in MB. * @param array $mpN Use volume as container mount point. * @param string $nameserver Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. @@ -9834,7 +10204,7 @@ public function vmlist() * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $description = null, $force = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) + public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $description = null, $features = null, $force = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) { $params = ['ostemplate' => $ostemplate, 'vmid' => $vmid, @@ -9846,6 +10216,7 @@ public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $c 'cpulimit' => $cpulimit, 'cpuunits' => $cpuunits, 'description' => $description, + 'features' => $features, 'force' => $force, 'hostname' => $hostname, 'ignore-unpack-errors' => $ignore_unpack_errors, @@ -9879,7 +10250,7 @@ public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $c * @param string $ostemplate The OS template or backup file. * @param int $vmid The (unique) ID of the VM. * @param string $arch OS architecture type. - * Enum: amd64,i386 + * Enum: amd64,i386,arm64,armhf * @param int $bwlimit Override i/o bandwidth limit (in KiB/s). * @param string $cmode Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). * Enum: shell,console,tty @@ -9888,11 +10259,12 @@ public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $c * @param int $cpulimit Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit. * @param int $cpuunits CPU weight for a VM. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this VM gets. Number is relative to the weights of all the other running VMs. NOTE: You can disable fair-scheduler configuration by setting this to 0. * @param string $description Container description. Only used on the configuration web interface. + * @param string $features Allow containers access to advanced features. * @param bool $force Allow to overwrite existing container. * @param string $hostname Set a host name for the container. * @param bool $ignore_unpack_errors Ignore errors when extracting the template. * @param string $lock Lock/unlock the VM. - * Enum: migrate,backup,snapshot,rollback + * Enum: backup,disk,migrate,mounted,rollback,snapshot,snapshot-delete * @param int $memory Amount of RAM for the VM in MB. * @param array $mpN Use volume as container mount point. * @param string $nameserver Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. @@ -9917,9 +10289,9 @@ public function createRest($ostemplate, $vmid, $arch = null, $bwlimit = null, $c * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $description = null, $force = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) + public function createVm($ostemplate, $vmid, $arch = null, $bwlimit = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $description = null, $features = null, $force = null, $hostname = null, $ignore_unpack_errors = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $password = null, $pool = null, $protection = null, $restore = null, $rootfs = null, $searchdomain = null, $ssh_public_keys = null, $start = null, $startup = null, $storage = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) { - return $this->createRest($ostemplate, $vmid, $arch, $bwlimit, $cmode, $console, $cores, $cpulimit, $cpuunits, $description, $force, $hostname, $ignore_unpack_errors, $lock, $memory, $mpN, $nameserver, $netN, $onboot, $ostype, $password, $pool, $protection, $restore, $rootfs, $searchdomain, $ssh_public_keys, $start, $startup, $storage, $swap, $template, $tty, $unprivileged, $unusedN); + return $this->createRest($ostemplate, $vmid, $arch, $bwlimit, $cmode, $console, $cores, $cpulimit, $cpuunits, $description, $features, $force, $hostname, $ignore_unpack_errors, $lock, $memory, $mpN, $nameserver, $netN, $onboot, $ostype, $password, $pool, $protection, $restore, $rootfs, $searchdomain, $ssh_public_keys, $start, $startup, $storage, $swap, $template, $tty, $unprivileged, $unusedN); } } @@ -10255,7 +10627,7 @@ public function vmConfig() /** * Set container options. * @param string $arch OS architecture type. - * Enum: amd64,i386 + * Enum: amd64,i386,arm64,armhf * @param string $cmode Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). * Enum: shell,console,tty * @param bool $console Attach a console device (/dev/console) to the container. @@ -10265,9 +10637,10 @@ public function vmConfig() * @param string $delete A list of settings you want to delete. * @param string $description Container description. Only used on the configuration web interface. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $features Allow containers access to advanced features. * @param string $hostname Set a host name for the container. * @param string $lock Lock/unlock the VM. - * Enum: migrate,backup,snapshot,rollback + * Enum: backup,disk,migrate,mounted,rollback,snapshot,snapshot-delete * @param int $memory Amount of RAM for the VM in MB. * @param array $mpN Use volume as container mount point. * @param string $nameserver Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. @@ -10286,7 +10659,7 @@ public function vmConfig() * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function setRest($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) + public function setRest($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $features = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) { $params = ['arch' => $arch, 'cmode' => $cmode, @@ -10297,6 +10670,7 @@ public function setRest($arch = null, $cmode = null, $console = null, $cores = n 'delete' => $delete, 'description' => $description, 'digest' => $digest, + 'features' => $features, 'hostname' => $hostname, 'lock' => $lock, 'memory' => $memory, @@ -10320,7 +10694,7 @@ public function setRest($arch = null, $cmode = null, $console = null, $cores = n /** * Set container options. * @param string $arch OS architecture type. - * Enum: amd64,i386 + * Enum: amd64,i386,arm64,armhf * @param string $cmode Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login). * Enum: shell,console,tty * @param bool $console Attach a console device (/dev/console) to the container. @@ -10330,9 +10704,10 @@ public function setRest($arch = null, $cmode = null, $console = null, $cores = n * @param string $delete A list of settings you want to delete. * @param string $description Container description. Only used on the configuration web interface. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @param string $features Allow containers access to advanced features. * @param string $hostname Set a host name for the container. * @param string $lock Lock/unlock the VM. - * Enum: migrate,backup,snapshot,rollback + * Enum: backup,disk,migrate,mounted,rollback,snapshot,snapshot-delete * @param int $memory Amount of RAM for the VM in MB. * @param array $mpN Use volume as container mount point. * @param string $nameserver Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver. @@ -10351,9 +10726,9 @@ public function setRest($arch = null, $cmode = null, $console = null, $cores = n * @param array $unusedN Reference to unused volumes. This is used internally, and should not be modified manually. * @return Result */ - public function updateVm($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) + public function updateVm($arch = null, $cmode = null, $console = null, $cores = null, $cpulimit = null, $cpuunits = null, $delete = null, $description = null, $digest = null, $features = null, $hostname = null, $lock = null, $memory = null, $mpN = null, $nameserver = null, $netN = null, $onboot = null, $ostype = null, $protection = null, $rootfs = null, $searchdomain = null, $startup = null, $swap = null, $template = null, $tty = null, $unprivileged = null, $unusedN = null) { - return $this->setRest($arch, $cmode, $console, $cores, $cpulimit, $cpuunits, $delete, $description, $digest, $hostname, $lock, $memory, $mpN, $nameserver, $netN, $onboot, $ostype, $protection, $rootfs, $searchdomain, $startup, $swap, $template, $tty, $unprivileged, $unusedN); + return $this->setRest($arch, $cmode, $console, $cores, $cpulimit, $cpuunits, $delete, $description, $digest, $features, $hostname, $lock, $memory, $mpN, $nameserver, $netN, $onboot, $ostype, $protection, $rootfs, $searchdomain, $startup, $swap, $template, $tty, $unprivileged, $unusedN); } } @@ -12390,7 +12765,7 @@ function __construct($client, $node, $vmid) /** * Returns a SPICE configuration to connect to the CT. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ public function createRest($proxy = null) @@ -12401,7 +12776,7 @@ public function createRest($proxy = null) /** * Returns a SPICE configuration to connect to the CT. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @return Result */ public function spiceproxy($proxy = null) @@ -12661,7 +13036,7 @@ function __construct($client, $node, $vmid) /** * Resize a container mount point. * @param string $disk The disk you want to resize. - * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9 + * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9,mp10,mp11,mp12,mp13,mp14,mp15,mp16,mp17,mp18,mp19,mp20,mp21,mp22,mp23,mp24,mp25,mp26,mp27,mp28,mp29,mp30,mp31,mp32,mp33,mp34,mp35,mp36,mp37,mp38,mp39,mp40,mp41,mp42,mp43,mp44,mp45,mp46,mp47,mp48,mp49,mp50,mp51,mp52,mp53,mp54,mp55,mp56,mp57,mp58,mp59,mp60,mp61,mp62,mp63,mp64,mp65,mp66,mp67,mp68,mp69,mp70,mp71,mp72,mp73,mp74,mp75,mp76,mp77,mp78,mp79,mp80,mp81,mp82,mp83,mp84,mp85,mp86,mp87,mp88,mp89,mp90,mp91,mp92,mp93,mp94,mp95,mp96,mp97,mp98,mp99,mp100,mp101,mp102,mp103,mp104,mp105,mp106,mp107,mp108,mp109,mp110,mp111,mp112,mp113,mp114,mp115,mp116,mp117,mp118,mp119,mp120,mp121,mp122,mp123,mp124,mp125,mp126,mp127,mp128,mp129,mp130,mp131,mp132,mp133,mp134,mp135,mp136,mp137,mp138,mp139,mp140,mp141,mp142,mp143,mp144,mp145,mp146,mp147,mp148,mp149,mp150,mp151,mp152,mp153,mp154,mp155,mp156,mp157,mp158,mp159,mp160,mp161,mp162,mp163,mp164,mp165,mp166,mp167,mp168,mp169,mp170,mp171,mp172,mp173,mp174,mp175,mp176,mp177,mp178,mp179,mp180,mp181,mp182,mp183,mp184,mp185,mp186,mp187,mp188,mp189,mp190,mp191,mp192,mp193,mp194,mp195,mp196,mp197,mp198,mp199,mp200,mp201,mp202,mp203,mp204,mp205,mp206,mp207,mp208,mp209,mp210,mp211,mp212,mp213,mp214,mp215,mp216,mp217,mp218,mp219,mp220,mp221,mp222,mp223,mp224,mp225,mp226,mp227,mp228,mp229,mp230,mp231,mp232,mp233,mp234,mp235,mp236,mp237,mp238,mp239,mp240,mp241,mp242,mp243,mp244,mp245,mp246,mp247,mp248,mp249,mp250,mp251,mp252,mp253,mp254,mp255 * @param string $size The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. * @return Result @@ -12677,7 +13052,7 @@ public function setRest($disk, $size, $digest = null) /** * Resize a container mount point. * @param string $disk The disk you want to resize. - * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9 + * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9,mp10,mp11,mp12,mp13,mp14,mp15,mp16,mp17,mp18,mp19,mp20,mp21,mp22,mp23,mp24,mp25,mp26,mp27,mp28,mp29,mp30,mp31,mp32,mp33,mp34,mp35,mp36,mp37,mp38,mp39,mp40,mp41,mp42,mp43,mp44,mp45,mp46,mp47,mp48,mp49,mp50,mp51,mp52,mp53,mp54,mp55,mp56,mp57,mp58,mp59,mp60,mp61,mp62,mp63,mp64,mp65,mp66,mp67,mp68,mp69,mp70,mp71,mp72,mp73,mp74,mp75,mp76,mp77,mp78,mp79,mp80,mp81,mp82,mp83,mp84,mp85,mp86,mp87,mp88,mp89,mp90,mp91,mp92,mp93,mp94,mp95,mp96,mp97,mp98,mp99,mp100,mp101,mp102,mp103,mp104,mp105,mp106,mp107,mp108,mp109,mp110,mp111,mp112,mp113,mp114,mp115,mp116,mp117,mp118,mp119,mp120,mp121,mp122,mp123,mp124,mp125,mp126,mp127,mp128,mp129,mp130,mp131,mp132,mp133,mp134,mp135,mp136,mp137,mp138,mp139,mp140,mp141,mp142,mp143,mp144,mp145,mp146,mp147,mp148,mp149,mp150,mp151,mp152,mp153,mp154,mp155,mp156,mp157,mp158,mp159,mp160,mp161,mp162,mp163,mp164,mp165,mp166,mp167,mp168,mp169,mp170,mp171,mp172,mp173,mp174,mp175,mp176,mp177,mp178,mp179,mp180,mp181,mp182,mp183,mp184,mp185,mp186,mp187,mp188,mp189,mp190,mp191,mp192,mp193,mp194,mp195,mp196,mp197,mp198,mp199,mp200,mp201,mp202,mp203,mp204,mp205,mp206,mp207,mp208,mp209,mp210,mp211,mp212,mp213,mp214,mp215,mp216,mp217,mp218,mp219,mp220,mp221,mp222,mp223,mp224,mp225,mp226,mp227,mp228,mp229,mp230,mp231,mp232,mp233,mp234,mp235,mp236,mp237,mp238,mp239,mp240,mp241,mp242,mp243,mp244,mp245,mp246,mp247,mp248,mp249,mp250,mp251,mp252,mp253,mp254,mp255 * @param string $size The new size. With the '+' sign the value is added to the actual size of the volume and without it, the value is taken as an absolute one. Shrinking disk size is not supported. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. * @return Result @@ -12717,7 +13092,7 @@ function __construct($client, $node, $vmid) * Move a rootfs-/mp-volume to a different storage * @param string $storage Target Storage. * @param string $volume Volume which will be moved. - * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9 + * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9,mp10,mp11,mp12,mp13,mp14,mp15,mp16,mp17,mp18,mp19,mp20,mp21,mp22,mp23,mp24,mp25,mp26,mp27,mp28,mp29,mp30,mp31,mp32,mp33,mp34,mp35,mp36,mp37,mp38,mp39,mp40,mp41,mp42,mp43,mp44,mp45,mp46,mp47,mp48,mp49,mp50,mp51,mp52,mp53,mp54,mp55,mp56,mp57,mp58,mp59,mp60,mp61,mp62,mp63,mp64,mp65,mp66,mp67,mp68,mp69,mp70,mp71,mp72,mp73,mp74,mp75,mp76,mp77,mp78,mp79,mp80,mp81,mp82,mp83,mp84,mp85,mp86,mp87,mp88,mp89,mp90,mp91,mp92,mp93,mp94,mp95,mp96,mp97,mp98,mp99,mp100,mp101,mp102,mp103,mp104,mp105,mp106,mp107,mp108,mp109,mp110,mp111,mp112,mp113,mp114,mp115,mp116,mp117,mp118,mp119,mp120,mp121,mp122,mp123,mp124,mp125,mp126,mp127,mp128,mp129,mp130,mp131,mp132,mp133,mp134,mp135,mp136,mp137,mp138,mp139,mp140,mp141,mp142,mp143,mp144,mp145,mp146,mp147,mp148,mp149,mp150,mp151,mp152,mp153,mp154,mp155,mp156,mp157,mp158,mp159,mp160,mp161,mp162,mp163,mp164,mp165,mp166,mp167,mp168,mp169,mp170,mp171,mp172,mp173,mp174,mp175,mp176,mp177,mp178,mp179,mp180,mp181,mp182,mp183,mp184,mp185,mp186,mp187,mp188,mp189,mp190,mp191,mp192,mp193,mp194,mp195,mp196,mp197,mp198,mp199,mp200,mp201,mp202,mp203,mp204,mp205,mp206,mp207,mp208,mp209,mp210,mp211,mp212,mp213,mp214,mp215,mp216,mp217,mp218,mp219,mp220,mp221,mp222,mp223,mp224,mp225,mp226,mp227,mp228,mp229,mp230,mp231,mp232,mp233,mp234,mp235,mp236,mp237,mp238,mp239,mp240,mp241,mp242,mp243,mp244,mp245,mp246,mp247,mp248,mp249,mp250,mp251,mp252,mp253,mp254,mp255 * @param bool $delete Delete the original volume after successful copy. By default the original is kept as an unused volume entry. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. * @return Result @@ -12735,7 +13110,7 @@ public function createRest($storage, $volume, $delete = null, $digest = null) * Move a rootfs-/mp-volume to a different storage * @param string $storage Target Storage. * @param string $volume Volume which will be moved. - * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9 + * Enum: rootfs,mp0,mp1,mp2,mp3,mp4,mp5,mp6,mp7,mp8,mp9,mp10,mp11,mp12,mp13,mp14,mp15,mp16,mp17,mp18,mp19,mp20,mp21,mp22,mp23,mp24,mp25,mp26,mp27,mp28,mp29,mp30,mp31,mp32,mp33,mp34,mp35,mp36,mp37,mp38,mp39,mp40,mp41,mp42,mp43,mp44,mp45,mp46,mp47,mp48,mp49,mp50,mp51,mp52,mp53,mp54,mp55,mp56,mp57,mp58,mp59,mp60,mp61,mp62,mp63,mp64,mp65,mp66,mp67,mp68,mp69,mp70,mp71,mp72,mp73,mp74,mp75,mp76,mp77,mp78,mp79,mp80,mp81,mp82,mp83,mp84,mp85,mp86,mp87,mp88,mp89,mp90,mp91,mp92,mp93,mp94,mp95,mp96,mp97,mp98,mp99,mp100,mp101,mp102,mp103,mp104,mp105,mp106,mp107,mp108,mp109,mp110,mp111,mp112,mp113,mp114,mp115,mp116,mp117,mp118,mp119,mp120,mp121,mp122,mp123,mp124,mp125,mp126,mp127,mp128,mp129,mp130,mp131,mp132,mp133,mp134,mp135,mp136,mp137,mp138,mp139,mp140,mp141,mp142,mp143,mp144,mp145,mp146,mp147,mp148,mp149,mp150,mp151,mp152,mp153,mp154,mp155,mp156,mp157,mp158,mp159,mp160,mp161,mp162,mp163,mp164,mp165,mp166,mp167,mp168,mp169,mp170,mp171,mp172,mp173,mp174,mp175,mp176,mp177,mp178,mp179,mp180,mp181,mp182,mp183,mp184,mp185,mp186,mp187,mp188,mp189,mp190,mp191,mp192,mp193,mp194,mp195,mp196,mp197,mp198,mp199,mp200,mp201,mp202,mp203,mp204,mp205,mp206,mp207,mp208,mp209,mp210,mp211,mp212,mp213,mp214,mp215,mp216,mp217,mp218,mp219,mp220,mp221,mp222,mp223,mp224,mp225,mp226,mp227,mp228,mp229,mp230,mp231,mp232,mp233,mp234,mp235,mp236,mp237,mp238,mp239,mp240,mp241,mp242,mp243,mp244,mp245,mp246,mp247,mp248,mp249,mp250,mp251,mp252,mp253,mp254,mp255 * @param bool $delete Delete the original volume after successful copy. By default the original is kept as an unused volume entry. * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. * @return Result @@ -12780,6 +13155,34 @@ public function getOsd() return $this->osd ?: ($this->osd = new PVECephNodeNodesOsd($this->client, $this->node)); } + /** + * @ignore + */ + private $mds; + + /** + * Get CephNodeNodesMds + * @return PVECephNodeNodesMds + */ + public function getMds() + { + return $this->mds ?: ($this->mds = new PVECephNodeNodesMds($this->client, $this->node)); + } + + /** + * @ignore + */ + private $fs; + + /** + * Get CephNodeNodesFs + * @return PVECephNodeNodesFs + */ + public function getFs() + { + return $this->fs ?: ($this->fs = new PVECephNodeNodesFs($this->client, $this->node)); + } + /** * @ignore */ @@ -12878,6 +13281,20 @@ public function getStart() return $this->start ?: ($this->start = new PVECephNodeNodesStart($this->client, $this->node)); } + /** + * @ignore + */ + private $restart; + + /** + * Get CephNodeNodesRestart + * @return PVECephNodeNodesRestart + */ + public function getRestart() + { + return $this->restart ?: ($this->restart = new PVECephNodeNodesRestart($this->client, $this->node)); + } + /** * @ignore */ @@ -13034,7 +13451,7 @@ public function index() * @param string $dev Block device name. * @param bool $bluestore Use bluestore instead of filestore. This is the default. * @param string $fstype File system type (filestore only). - * Enum: xfs,ext4,btrfs + * Enum: xfs,ext4 * @param string $journal_dev Block device name for journal (filestore) or block.db (bluestore). * @param string $wal_dev Block device name for block.wal (bluestore only). * @return Result @@ -13054,7 +13471,7 @@ public function createRest($dev, $bluestore = null, $fstype = null, $journal_dev * @param string $dev Block device name. * @param bool $bluestore Use bluestore instead of filestore. This is the default. * @param string $fstype File system type (filestore only). - * Enum: xfs,ext4,btrfs + * Enum: xfs,ext4 * @param string $journal_dev Block device name for journal (filestore) or block.db (bluestore). * @param string $wal_dev Block device name for block.wal (bluestore only). * @return Result @@ -13228,6 +13645,219 @@ public function out() } } + /** + * Class PVECephNodeNodesMds + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVECephNodeNodesMds extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Get ItemMdsCephNodeNodesName + * @param name + * @return PVEItemMdsCephNodeNodesName + */ + public function get($name) + { + return new PVEItemMdsCephNodeNodesName($this->client, $this->node, $name); + } + + /** + * MDS directory index. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/ceph/mds"); + } + + /** + * MDS directory index. + * @return Result + */ + public function index() + { + return $this->getRest(); + } + } + + /** + * Class PVEItemMdsCephNodeNodesName + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEItemMdsCephNodeNodesName extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $name; + + /** + * @ignore + */ + function __construct($client, $node, $name) + { + $this->client = $client; + $this->node = $node; + $this->name = $name; + } + + /** + * Destroy Ceph Metadata Server + * @return Result + */ + public function deleteRest() + { + return $this->getClient()->delete("/nodes/{$this->node}/ceph/mds/{$this->name}"); + } + + /** + * Destroy Ceph Metadata Server + * @return Result + */ + public function destroymds() + { + return $this->deleteRest(); + } + + /** + * Create Ceph Metadata Server (MDS) + * @param bool $hotstandby Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources. + * @return Result + */ + public function createRest($hotstandby = null) + { + $params = ['hotstandby' => $hotstandby]; + return $this->getClient()->create("/nodes/{$this->node}/ceph/mds/{$this->name}", $params); + } + + /** + * Create Ceph Metadata Server (MDS) + * @param bool $hotstandby Determines whether a ceph-mds daemon should poll and replay the log of an active MDS. Faster switch on MDS failure, but needs more idle resources. + * @return Result + */ + public function createmds($hotstandby = null) + { + return $this->createRest($hotstandby); + } + } + + /** + * Class PVECephNodeNodesFs + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVECephNodeNodesFs extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Get ItemFsCephNodeNodesName + * @param name + * @return PVEItemFsCephNodeNodesName + */ + public function get($name) + { + return new PVEItemFsCephNodeNodesName($this->client, $this->node, $name); + } + + /** + * Directory index. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/ceph/fs"); + } + + /** + * Directory index. + * @return Result + */ + public function index() + { + return $this->getRest(); + } + } + + /** + * Class PVEItemFsCephNodeNodesName + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEItemFsCephNodeNodesName extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $name; + + /** + * @ignore + */ + function __construct($client, $node, $name) + { + $this->client = $client; + $this->node = $node; + $this->name = $name; + } + + /** + * Create a Ceph filesystem + * @param bool $add_storage Configure the created CephFS as storage for this cluster. + * @param int $pg_num Number of placement groups for the backing data pool. The metadata pool will use a quarter of this. + * @return Result + */ + public function createRest($add_storage = null, $pg_num = null) + { + $params = ['add-storage' => $add_storage, + 'pg_num' => $pg_num]; + return $this->getClient()->create("/nodes/{$this->node}/ceph/fs/{$this->name}", $params); + } + + /** + * Create a Ceph filesystem + * @param bool $add_storage Configure the created CephFS as storage for this cluster. + * @param int $pg_num Number of placement groups for the backing data pool. The metadata pool will use a quarter of this. + * @return Result + */ + public function createfs($add_storage = null, $pg_num = null) + { + return $this->createRest($add_storage, $pg_num); + } + } + /** * Class PVECephNodeNodesDisks * @package EnterpriseVE\ProxmoxVE\Api @@ -13456,6 +14086,7 @@ function __construct($client, $node) /** * Create initial ceph default configuration and setup symlinks. + * @param string $cluster_network Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it * @param bool $disable_cephx Disable cephx authentification. WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private! * @param int $min_size Minimum number of available replicas per object to allow I/O * @param string $network Use specific network for all ceph related traffic @@ -13463,9 +14094,10 @@ function __construct($client, $node) * @param int $size Targeted number of replicas per object * @return Result */ - public function createRest($disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) + public function createRest($cluster_network = null, $disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) { - $params = ['disable_cephx' => $disable_cephx, + $params = ['cluster-network' => $cluster_network, + 'disable_cephx' => $disable_cephx, 'min_size' => $min_size, 'network' => $network, 'pg_bits' => $pg_bits, @@ -13475,6 +14107,7 @@ public function createRest($disable_cephx = null, $min_size = null, $network = n /** * Create initial ceph default configuration and setup symlinks. + * @param string $cluster_network Declare a separate cluster network, OSDs will routeheartbeat, object replication and recovery traffic over it * @param bool $disable_cephx Disable cephx authentification. WARNING: cephx is a security feature protecting against man-in-the-middle attacks. Only consider disabling cephx if your network is private! * @param int $min_size Minimum number of available replicas per object to allow I/O * @param string $network Use specific network for all ceph related traffic @@ -13482,9 +14115,9 @@ public function createRest($disable_cephx = null, $min_size = null, $network = n * @param int $size Targeted number of replicas per object * @return Result */ - public function init($disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) + public function init($cluster_network = null, $disable_cephx = null, $min_size = null, $network = null, $pg_bits = null, $size = null) { - return $this->createRest($disable_cephx, $min_size, $network, $pg_bits, $size); + return $this->createRest($cluster_network, $disable_cephx, $min_size, $network, $pg_bits, $size); } } @@ -13668,6 +14301,48 @@ public function start($service = null) } } + /** + * Class PVECephNodeNodesRestart + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVECephNodeNodesRestart extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Restart ceph services. + * @param string $service Ceph service name. + * @return Result + */ + public function createRest($service = null) + { + $params = ['service' => $service]; + return $this->getClient()->create("/nodes/{$this->node}/ceph/restart", $params); + } + + /** + * Restart ceph services. + * @param string $service Ceph service name. + * @return Result + */ + public function restart($service = null) + { + return $this->createRest($service); + } + } + /** * Class PVECephNodeNodesStatus * @package EnterpriseVE\ProxmoxVE\Api @@ -13758,7 +14433,7 @@ public function lspools() /** * Create POOL * @param string $name The name of the pool. It must be unique. - * @param bool $add_storages Configure VM and CT storages using the new pool. + * @param bool $add_storages Configure VM and CT storage using the new pool. * @param string $application The application of the pool, 'rbd' by default. * Enum: rbd,cephfs,rgw * @param string $crush_rule The rule to use for mapping object placement in the cluster. @@ -13782,7 +14457,7 @@ public function createRest($name, $add_storages = null, $application = null, $cr /** * Create POOL * @param string $name The name of the pool. It must be unique. - * @param bool $add_storages Configure VM and CT storages using the new pool. + * @param bool $add_storages Configure VM and CT storage using the new pool. * @param string $application The application of the pool, 'rbd' by default. * Enum: rbd,cephfs,rgw * @param string $crush_rule The rule to use for mapping object placement in the cluster. @@ -14875,6 +15550,24 @@ public function createNetwork($iface, $type, $address = null, $address6 = null, { return $this->createRest($iface, $type, $address, $address6, $autostart, $bond_mode, $bond_xmit_hash_policy, $bridge_ports, $bridge_vlan_aware, $comments, $comments6, $gateway, $gateway6, $netmask, $netmask6, $ovs_bonds, $ovs_bridge, $ovs_options, $ovs_ports, $ovs_tag, $slaves); } + + /** + * Reload network configuration + * @return Result + */ + public function setRest() + { + return $this->getClient()->set("/nodes/{$this->node}/network"); + } + + /** + * Reload network configuration + * @return Result + */ + public function reloadNetworkConfig() + { + return $this->setRest(); + } } /** @@ -15059,9 +15752,9 @@ public function get($upid) /** * Read task list for one node (finished tasks). * @param bool $errors - * @param int $limit - * @param int $start - * @param string $userfilter + * @param int $limit Only list this amount of tasks. + * @param int $start List tasks beginning from this offset. + * @param string $userfilter Only list tasks from this user. * @param int $vmid Only list tasks for this VM. * @return Result */ @@ -15078,9 +15771,9 @@ public function getRest($errors = null, $limit = null, $start = null, $userfilte /** * Read task list for one node (finished tasks). * @param bool $errors - * @param int $limit - * @param int $start - * @param string $userfilter + * @param int $limit Only list this amount of tasks. + * @param int $start List tasks beginning from this offset. + * @param string $userfilter Only list tasks from this user. * @param int $vmid Only list tasks for this VM. * @return Result */ @@ -15486,7 +16179,7 @@ function __construct($client, $node) /** * Scan remote NFS server. - * @param string $server + * @param string $server The server address (name or IP). * @return Result */ public function getRest($server) @@ -15497,7 +16190,7 @@ public function getRest($server) /** * Scan remote NFS server. - * @param string $server + * @param string $server The server address (name or IP). * @return Result */ public function nfsscan($server) @@ -15528,10 +16221,10 @@ function __construct($client, $node) /** * Scan remote CIFS server. - * @param string $server - * @param string $domain - * @param string $password - * @param string $username + * @param string $server The server address (name or IP). + * @param string $domain SMB domain (Workgroup). + * @param string $password User password. + * @param string $username User name. * @return Result */ public function getRest($server, $domain = null, $password = null, $username = null) @@ -15545,10 +16238,10 @@ public function getRest($server, $domain = null, $password = null, $username = n /** * Scan remote CIFS server. - * @param string $server - * @param string $domain - * @param string $password - * @param string $username + * @param string $server The server address (name or IP). + * @param string $domain SMB domain (Workgroup). + * @param string $password User password. + * @param string $username User name. * @return Result */ public function cifsscan($server, $domain = null, $password = null, $username = null) @@ -15579,7 +16272,7 @@ function __construct($client, $node) /** * Scan remote GlusterFS server. - * @param string $server + * @param string $server The server address (name or IP). * @return Result */ public function getRest($server) @@ -15590,7 +16283,7 @@ public function getRest($server) /** * Scan remote GlusterFS server. - * @param string $server + * @param string $server The server address (name or IP). * @return Result */ public function glusterfsscan($server) @@ -15621,7 +16314,7 @@ function __construct($client, $node) /** * Scan remote iSCSI server. - * @param string $portal + * @param string $portal The iSCSI portal (IP or DNS name with optional port). * @return Result */ public function getRest($portal) @@ -15632,7 +16325,7 @@ public function getRest($portal) /** * Scan remote iSCSI server. - * @param string $portal + * @param string $portal The iSCSI portal (IP or DNS name with optional port). * @return Result */ public function iscsiscan($portal) @@ -15762,7 +16455,217 @@ public function usbscan() } /** - * Class PVENodeNodesStorage + * Class PVENodeNodesHardware + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVENodeNodesHardware extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * @ignore + */ + private $pci; + + /** + * Get HardwareNodeNodesPci + * @return PVEHardwareNodeNodesPci + */ + public function getPci() + { + return $this->pci ?: ($this->pci = new PVEHardwareNodeNodesPci($this->client, $this->node)); + } + + /** + * Index of hardware types + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/hardware"); + } + + /** + * Index of hardware types + * @return Result + */ + public function index() + { + return $this->getRest(); + } + } + + /** + * Class PVEHardwareNodeNodesPci + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEHardwareNodeNodesPci extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Get ItemPciHardwareNodeNodesPciid + * @param pciid + * @return PVEItemPciHardwareNodeNodesPciid + */ + public function get($pciid) + { + return new PVEItemPciHardwareNodeNodesPciid($this->client, $this->node, $pciid); + } + + /** + * List local PCI devices. + * @param string $pci_class_blacklist A list of blacklisted PCI classes, which will not be returned. Following are filtered by default: Memory Controller (05), Bridge (06), Generic System Peripheral (08) and Processor (0b). + * @param bool $verbose If disabled, does only print the PCI IDs. Otherwise, additional information like vendor and device will be returned. + * @return Result + */ + public function getRest($pci_class_blacklist = null, $verbose = null) + { + $params = ['pci-class-blacklist' => $pci_class_blacklist, + 'verbose' => $verbose]; + return $this->getClient()->get("/nodes/{$this->node}/hardware/pci", $params); + } + + /** + * List local PCI devices. + * @param string $pci_class_blacklist A list of blacklisted PCI classes, which will not be returned. Following are filtered by default: Memory Controller (05), Bridge (06), Generic System Peripheral (08) and Processor (0b). + * @param bool $verbose If disabled, does only print the PCI IDs. Otherwise, additional information like vendor and device will be returned. + * @return Result + */ + public function pciscan($pci_class_blacklist = null, $verbose = null) + { + return $this->getRest($pci_class_blacklist, $verbose); + } + } + + /** + * Class PVEItemPciHardwareNodeNodesPciid + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEItemPciHardwareNodeNodesPciid extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $pciid; + + /** + * @ignore + */ + function __construct($client, $node, $pciid) + { + $this->client = $client; + $this->node = $node; + $this->pciid = $pciid; + } + + /** + * @ignore + */ + private $mdev; + + /** + * Get PciidPciHardwareNodeNodesMdev + * @return PVEPciidPciHardwareNodeNodesMdev + */ + public function getMdev() + { + return $this->mdev ?: ($this->mdev = new PVEPciidPciHardwareNodeNodesMdev($this->client, $this->node, $this->pciid)); + } + + /** + * Index of available pci methods + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/hardware/pci/{$this->pciid}"); + } + + /** + * Index of available pci methods + * @return Result + */ + public function pciindex() + { + return $this->getRest(); + } + } + + /** + * Class PVEPciidPciHardwareNodeNodesMdev + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEPciidPciHardwareNodeNodesMdev extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $pciid; + + /** + * @ignore + */ + function __construct($client, $node, $pciid) + { + $this->client = $client; + $this->node = $node; + $this->pciid = $pciid; + } + + /** + * List mediated device types for given PCI device. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/hardware/pci/{$this->pciid}/mdev"); + } + + /** + * List mediated device types for given PCI device. + * @return Result + */ + public function mdevscan() + { + return $this->getRest(); + } + } + + /** + * Class PVENodeNodesStorage * @package EnterpriseVE\ProxmoxVE\Api */ class PVENodeNodesStorage extends Base @@ -16350,6 +17253,62 @@ function __construct($client, $node) $this->node = $node; } + /** + * @ignore + */ + private $lvm; + + /** + * Get DisksNodeNodesLvm + * @return PVEDisksNodeNodesLvm + */ + public function getLvm() + { + return $this->lvm ?: ($this->lvm = new PVEDisksNodeNodesLvm($this->client, $this->node)); + } + + /** + * @ignore + */ + private $lvmthin; + + /** + * Get DisksNodeNodesLvmthin + * @return PVEDisksNodeNodesLvmthin + */ + public function getLvmthin() + { + return $this->lvmthin ?: ($this->lvmthin = new PVEDisksNodeNodesLvmthin($this->client, $this->node)); + } + + /** + * @ignore + */ + private $directory; + + /** + * Get DisksNodeNodesDirectory + * @return PVEDisksNodeNodesDirectory + */ + public function getDirectory() + { + return $this->directory ?: ($this->directory = new PVEDisksNodeNodesDirectory($this->client, $this->node)); + } + + /** + * @ignore + */ + private $zfs; + + /** + * Get DisksNodeNodesZfs + * @return PVEDisksNodeNodesZfs + */ + public function getZfs() + { + return $this->zfs ?: ($this->zfs = new PVEDisksNodeNodesZfs($this->client, $this->node)); + } + /** * @ignore */ @@ -16411,6 +17370,342 @@ public function index() } } + /** + * Class PVEDisksNodeNodesLvm + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEDisksNodeNodesLvm extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * List LVM Volume Groups + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/disks/lvm"); + } + + /** + * List LVM Volume Groups + * @return Result + */ + public function index() + { + return $this->getRest(); + } + + /** + * Create an LVM Volume Group + * @param string $device The block device you want to create the volume group on + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the Volume Group + * @return Result + */ + public function createRest($device, $name, $add_storage = null) + { + $params = ['device' => $device, + 'name' => $name, + 'add_storage' => $add_storage]; + return $this->getClient()->create("/nodes/{$this->node}/disks/lvm", $params); + } + + /** + * Create an LVM Volume Group + * @param string $device The block device you want to create the volume group on + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the Volume Group + * @return Result + */ + public function create($device, $name, $add_storage = null) + { + return $this->createRest($device, $name, $add_storage); + } + } + + /** + * Class PVEDisksNodeNodesLvmthin + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEDisksNodeNodesLvmthin extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * List LVM thinpools + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/disks/lvmthin"); + } + + /** + * List LVM thinpools + * @return Result + */ + public function index() + { + return $this->getRest(); + } + + /** + * Create an LVM thinpool + * @param string $device The block device you want to create the thinpool on. + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the thinpool. + * @return Result + */ + public function createRest($device, $name, $add_storage = null) + { + $params = ['device' => $device, + 'name' => $name, + 'add_storage' => $add_storage]; + return $this->getClient()->create("/nodes/{$this->node}/disks/lvmthin", $params); + } + + /** + * Create an LVM thinpool + * @param string $device The block device you want to create the thinpool on. + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the thinpool. + * @return Result + */ + public function create($device, $name, $add_storage = null) + { + return $this->createRest($device, $name, $add_storage); + } + } + + /** + * Class PVEDisksNodeNodesDirectory + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEDisksNodeNodesDirectory extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * PVE Managed Directory storages. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/disks/directory"); + } + + /** + * PVE Managed Directory storages. + * @return Result + */ + public function index() + { + return $this->getRest(); + } + + /** + * Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + * @param string $device The block device you want to create the filesystem on. + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the directory. + * @param string $filesystem The desired filesystem. + * Enum: ext4,xfs + * @return Result + */ + public function createRest($device, $name, $add_storage = null, $filesystem = null) + { + $params = ['device' => $device, + 'name' => $name, + 'add_storage' => $add_storage, + 'filesystem' => $filesystem]; + return $this->getClient()->create("/nodes/{$this->node}/disks/directory", $params); + } + + /** + * Create a Filesystem on an unused disk. Will be mounted under '/mnt/pve/NAME'. + * @param string $device The block device you want to create the filesystem on. + * @param string $name The storage identifier. + * @param bool $add_storage Configure storage using the directory. + * @param string $filesystem The desired filesystem. + * Enum: ext4,xfs + * @return Result + */ + public function create($device, $name, $add_storage = null, $filesystem = null) + { + return $this->createRest($device, $name, $add_storage, $filesystem); + } + } + + /** + * Class PVEDisksNodeNodesZfs + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEDisksNodeNodesZfs extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Get ItemZfsDisksNodeNodesName + * @param name + * @return PVEItemZfsDisksNodeNodesName + */ + public function get($name) + { + return new PVEItemZfsDisksNodeNodesName($this->client, $this->node, $name); + } + + /** + * List Zpools. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/disks/zfs"); + } + + /** + * List Zpools. + * @return Result + */ + public function index() + { + return $this->getRest(); + } + + /** + * Create a ZFS pool. + * @param string $devices The block devices you want to create the zpool on. + * @param string $name The storage identifier. + * @param string $raidlevel The RAID level to use. + * Enum: single,mirror,raid10,raidz,raidz2,raidz3 + * @param bool $add_storage Configure storage using the zpool. + * @param int $ashift Pool sector size exponent. + * @param string $compression The compression algorithm to use. + * Enum: on,off,gzip,lz4,lzjb,zle + * @return Result + */ + public function createRest($devices, $name, $raidlevel, $add_storage = null, $ashift = null, $compression = null) + { + $params = ['devices' => $devices, + 'name' => $name, + 'raidlevel' => $raidlevel, + 'add_storage' => $add_storage, + 'ashift' => $ashift, + 'compression' => $compression]; + return $this->getClient()->create("/nodes/{$this->node}/disks/zfs", $params); + } + + /** + * Create a ZFS pool. + * @param string $devices The block devices you want to create the zpool on. + * @param string $name The storage identifier. + * @param string $raidlevel The RAID level to use. + * Enum: single,mirror,raid10,raidz,raidz2,raidz3 + * @param bool $add_storage Configure storage using the zpool. + * @param int $ashift Pool sector size exponent. + * @param string $compression The compression algorithm to use. + * Enum: on,off,gzip,lz4,lzjb,zle + * @return Result + */ + public function create($devices, $name, $raidlevel, $add_storage = null, $ashift = null, $compression = null) + { + return $this->createRest($devices, $name, $raidlevel, $add_storage, $ashift, $compression); + } + } + + /** + * Class PVEItemZfsDisksNodeNodesName + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVEItemZfsDisksNodeNodesName extends Base + { + /** + * @ignore + */ + private $node; + /** + * @ignore + */ + private $name; + + /** + * @ignore + */ + function __construct($client, $node, $name) + { + $this->client = $client; + $this->node = $node; + $this->name = $name; + } + + /** + * Get details about a zpool. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/disks/zfs/{$this->name}"); + } + + /** + * Get details about a zpool. + * @return Result + */ + public function detail() + { + return $this->getRest(); + } + } + /** * Class PVEDisksNodeNodesList * @package EnterpriseVE\ProxmoxVE\Api @@ -16433,20 +17728,28 @@ function __construct($client, $node) /** * List local disks. + * @param bool $skipsmart Skip smart checks. + * @param string $type Only list specific types of disks. + * Enum: unused,journal_disks * @return Result */ - public function getRest() + public function getRest($skipsmart = null, $type = null) { - return $this->getClient()->get("/nodes/{$this->node}/disks/list"); + $params = ['skipsmart' => $skipsmart, + 'type' => $type]; + return $this->getClient()->get("/nodes/{$this->node}/disks/list", $params); } /** * List local disks. + * @param bool $skipsmart Skip smart checks. + * @param string $type Only list specific types of disks. + * Enum: unused,journal_disks * @return Result */ - public function list_() + public function list_($skipsmart = null, $type = null) { - return $this->getRest(); + return $this->getRest($skipsmart, $type); } } @@ -18398,7 +19701,7 @@ function __construct($client, $node) /** * Creates a SPICE shell. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @param bool $upgrade Run 'apt-get dist-upgrade' instead of normal shell. * @return Result */ @@ -18411,7 +19714,7 @@ public function createRest($proxy = null, $upgrade = null) /** * Creates a SPICE shell. - * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As resonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). + * @param string $proxy SPICE proxy server. This can be used by the client to specify the proxy server. All nodes in a cluster runs 'spiceproxy', so it is up to the client to choose one. By default, we return the node where the VM is currently running. As reasonable setting is to use same node you use to connect to the API (This is window.location.hostname for the JS GUI). * @param bool $upgrade Run 'apt-get dist-upgrade' instead of normal shell. * @return Result */ @@ -18787,6 +20090,69 @@ public function migrateall($target, $maxworkers = null, $vms = null) } } + /** + * Class PVENodeNodesHosts + * @package EnterpriseVE\ProxmoxVE\Api + */ + class PVENodeNodesHosts extends Base + { + /** + * @ignore + */ + private $node; + + /** + * @ignore + */ + function __construct($client, $node) + { + $this->client = $client; + $this->node = $node; + } + + /** + * Get the content of /etc/hosts. + * @return Result + */ + public function getRest() + { + return $this->getClient()->get("/nodes/{$this->node}/hosts"); + } + + /** + * Get the content of /etc/hosts. + * @return Result + */ + public function getEtcHosts() + { + return $this->getRest(); + } + + /** + * Write /etc/hosts. + * @param string $data The target content of /etc/hosts. + * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @return Result + */ + public function createRest($data, $digest = null) + { + $params = ['data' => $data, + 'digest' => $digest]; + return $this->getClient()->create("/nodes/{$this->node}/hosts", $params); + } + + /** + * Write /etc/hosts. + * @param string $data The target content of /etc/hosts. + * @param string $digest Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. + * @return Result + */ + public function writeEtcHosts($data, $digest = null) + { + return $this->createRest($data, $digest); + } + } + /** * Class PVEStorage * @package EnterpriseVE\ProxmoxVE\Api @@ -18814,7 +20180,7 @@ public function get($storage) /** * Storage index. * @param string $type Only list storage of specific type - * Enum: cephfs,cifs,dir,drbd,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool + * Enum: cephfs,cifs,dir,drbd,fake,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool * @return Result */ public function getRest($type = null) @@ -18826,7 +20192,7 @@ public function getRest($type = null) /** * Storage index. * @param string $type Only list storage of specific type - * Enum: cephfs,cifs,dir,drbd,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool + * Enum: cephfs,cifs,dir,drbd,fake,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool * @return Result */ public function index($type = null) @@ -18838,7 +20204,7 @@ public function index($type = null) * Create a new storage. * @param string $storage The storage identifier. * @param string $type Storage type. - * Enum: cephfs,cifs,dir,drbd,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool + * Enum: cephfs,cifs,dir,drbd,fake,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool * @param string $authsupported Authsupported. * @param string $base Base volume. This volume is automatically activated. * @param string $blocksize block size @@ -18853,7 +20219,8 @@ public function index($type = null) * @param bool $fuse Mount CephFS through FUSE. * @param string $is_mountpoint Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. * @param string $iscsiprovider iscsi provider - * @param bool $krbd Access rbd through krbd kernel module. + * @param bool $krbd Always access rbd through krbd kernel module. + * @param string $lio_tpg target portal group for Linux LIO targets * @param int $maxfiles Maximal number of backup files per VM. Use '0' for unlimted. * @param bool $mkdir Create the directory if it doesn't exist. * @param string $monhost IP addresses of monitors (for external clusters). @@ -18885,7 +20252,7 @@ public function index($type = null) * @param string $volume Glusterfs Volume. * @return Result */ - public function createRest($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $disable = null, $domain = null, $export = null, $format = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $krbd = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $portal = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) + public function createRest($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $disable = null, $domain = null, $export = null, $format = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $krbd = null, $lio_tpg = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $portal = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) { $params = ['storage' => $storage, 'type' => $type, @@ -18904,6 +20271,7 @@ public function createRest($storage, $type, $authsupported = null, $base = null, 'is_mountpoint' => $is_mountpoint, 'iscsiprovider' => $iscsiprovider, 'krbd' => $krbd, + 'lio_tpg' => $lio_tpg, 'maxfiles' => $maxfiles, 'mkdir' => $mkdir, 'monhost' => $monhost, @@ -18938,7 +20306,7 @@ public function createRest($storage, $type, $authsupported = null, $base = null, * Create a new storage. * @param string $storage The storage identifier. * @param string $type Storage type. - * Enum: cephfs,cifs,dir,drbd,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool + * Enum: cephfs,cifs,dir,drbd,fake,glusterfs,iscsi,iscsidirect,lvm,lvmthin,nfs,rbd,sheepdog,zfs,zfspool * @param string $authsupported Authsupported. * @param string $base Base volume. This volume is automatically activated. * @param string $blocksize block size @@ -18953,7 +20321,8 @@ public function createRest($storage, $type, $authsupported = null, $base = null, * @param bool $fuse Mount CephFS through FUSE. * @param string $is_mountpoint Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. * @param string $iscsiprovider iscsi provider - * @param bool $krbd Access rbd through krbd kernel module. + * @param bool $krbd Always access rbd through krbd kernel module. + * @param string $lio_tpg target portal group for Linux LIO targets * @param int $maxfiles Maximal number of backup files per VM. Use '0' for unlimted. * @param bool $mkdir Create the directory if it doesn't exist. * @param string $monhost IP addresses of monitors (for external clusters). @@ -18985,9 +20354,9 @@ public function createRest($storage, $type, $authsupported = null, $base = null, * @param string $volume Glusterfs Volume. * @return Result */ - public function create($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $disable = null, $domain = null, $export = null, $format = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $krbd = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $portal = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) + public function create($storage, $type, $authsupported = null, $base = null, $blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $disable = null, $domain = null, $export = null, $format = null, $fuse = null, $is_mountpoint = null, $iscsiprovider = null, $krbd = null, $lio_tpg = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $path = null, $pool = null, $portal = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $share = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $target = null, $thinpool = null, $transport = null, $username = null, $vgname = null, $volume = null) { - return $this->createRest($storage, $type, $authsupported, $base, $blocksize, $bwlimit, $comstar_hg, $comstar_tg, $content, $disable, $domain, $export, $format, $fuse, $is_mountpoint, $iscsiprovider, $krbd, $maxfiles, $mkdir, $monhost, $nodes, $nowritecache, $options, $password, $path, $pool, $portal, $redundancy, $saferemove, $saferemove_throughput, $server, $server2, $share, $shared, $smbversion, $sparse, $subdir, $tagged_only, $target, $thinpool, $transport, $username, $vgname, $volume); + return $this->createRest($storage, $type, $authsupported, $base, $blocksize, $bwlimit, $comstar_hg, $comstar_tg, $content, $disable, $domain, $export, $format, $fuse, $is_mountpoint, $iscsiprovider, $krbd, $lio_tpg, $maxfiles, $mkdir, $monhost, $nodes, $nowritecache, $options, $password, $path, $pool, $portal, $redundancy, $saferemove, $saferemove_throughput, $server, $server2, $share, $shared, $smbversion, $sparse, $subdir, $tagged_only, $target, $thinpool, $transport, $username, $vgname, $volume); } } @@ -19061,7 +20430,8 @@ public function read() * @param string $format Default image format. * @param bool $fuse Mount CephFS through FUSE. * @param string $is_mountpoint Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. - * @param bool $krbd Access rbd through krbd kernel module. + * @param bool $krbd Always access rbd through krbd kernel module. + * @param string $lio_tpg target portal group for Linux LIO targets * @param int $maxfiles Maximal number of backup files per VM. Use '0' for unlimted. * @param bool $mkdir Create the directory if it doesn't exist. * @param string $monhost IP addresses of monitors (for external clusters). @@ -19086,7 +20456,7 @@ public function read() * @param string $username RBD Id. * @return Result */ - public function setRest($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $delete = null, $digest = null, $disable = null, $domain = null, $format = null, $fuse = null, $is_mountpoint = null, $krbd = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) + public function setRest($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $delete = null, $digest = null, $disable = null, $domain = null, $format = null, $fuse = null, $is_mountpoint = null, $krbd = null, $lio_tpg = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) { $params = ['blocksize' => $blocksize, 'bwlimit' => $bwlimit, @@ -19101,6 +20471,7 @@ public function setRest($blocksize = null, $bwlimit = null, $comstar_hg = null, 'fuse' => $fuse, 'is_mountpoint' => $is_mountpoint, 'krbd' => $krbd, + 'lio_tpg' => $lio_tpg, 'maxfiles' => $maxfiles, 'mkdir' => $mkdir, 'monhost' => $monhost, @@ -19138,7 +20509,8 @@ public function setRest($blocksize = null, $bwlimit = null, $comstar_hg = null, * @param string $format Default image format. * @param bool $fuse Mount CephFS through FUSE. * @param string $is_mountpoint Assume the given path is an externally managed mountpoint and consider the storage offline if it is not mounted. Using a boolean (yes/no) value serves as a shortcut to using the target path in this field. - * @param bool $krbd Access rbd through krbd kernel module. + * @param bool $krbd Always access rbd through krbd kernel module. + * @param string $lio_tpg target portal group for Linux LIO targets * @param int $maxfiles Maximal number of backup files per VM. Use '0' for unlimted. * @param bool $mkdir Create the directory if it doesn't exist. * @param string $monhost IP addresses of monitors (for external clusters). @@ -19163,9 +20535,9 @@ public function setRest($blocksize = null, $bwlimit = null, $comstar_hg = null, * @param string $username RBD Id. * @return Result */ - public function update($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $delete = null, $digest = null, $disable = null, $domain = null, $format = null, $fuse = null, $is_mountpoint = null, $krbd = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) + public function update($blocksize = null, $bwlimit = null, $comstar_hg = null, $comstar_tg = null, $content = null, $delete = null, $digest = null, $disable = null, $domain = null, $format = null, $fuse = null, $is_mountpoint = null, $krbd = null, $lio_tpg = null, $maxfiles = null, $mkdir = null, $monhost = null, $nodes = null, $nowritecache = null, $options = null, $password = null, $pool = null, $redundancy = null, $saferemove = null, $saferemove_throughput = null, $server = null, $server2 = null, $shared = null, $smbversion = null, $sparse = null, $subdir = null, $tagged_only = null, $transport = null, $username = null) { - return $this->setRest($blocksize, $bwlimit, $comstar_hg, $comstar_tg, $content, $delete, $digest, $disable, $domain, $format, $fuse, $is_mountpoint, $krbd, $maxfiles, $mkdir, $monhost, $nodes, $nowritecache, $options, $password, $pool, $redundancy, $saferemove, $saferemove_throughput, $server, $server2, $shared, $smbversion, $sparse, $subdir, $tagged_only, $transport, $username); + return $this->setRest($blocksize, $bwlimit, $comstar_hg, $comstar_tg, $content, $delete, $digest, $disable, $domain, $format, $fuse, $is_mountpoint, $krbd, $lio_tpg, $maxfiles, $mkdir, $monhost, $nodes, $nowritecache, $options, $password, $pool, $redundancy, $saferemove, $saferemove_throughput, $server, $server2, $shared, $smbversion, $sparse, $subdir, $tagged_only, $transport, $username); } } @@ -19350,7 +20722,7 @@ public function index($enabled = null) * @param string $userid User ID * @param string $comment * @param string $email - * @param bool $enable Enable the account (default). You can set this to '0' to disable the accout + * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. * @param string $firstname * @param string $groups @@ -19379,7 +20751,7 @@ public function createRest($userid, $comment = null, $email = null, $enable = nu * @param string $userid User ID * @param string $comment * @param string $email - * @param bool $enable Enable the account (default). You can set this to '0' to disable the accout + * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. * @param string $firstname * @param string $groups @@ -19455,7 +20827,7 @@ public function readUser() * @param bool $append * @param string $comment * @param string $email - * @param bool $enable Enable/disable the account. + * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. * @param string $firstname * @param string $groups @@ -19482,7 +20854,7 @@ public function setRest($append = null, $comment = null, $email = null, $enable * @param bool $append * @param string $comment * @param string $email - * @param bool $enable Enable/disable the account. + * @param bool $enable Enable the account (default). You can set this to '0' to disable the account * @param int $expire Account expiration date (seconds since epoch). '0' means no expiration date. * @param string $firstname * @param string $groups @@ -19765,27 +21137,27 @@ public function readRole() } /** - * Create new role. - * @param string $privs + * Update an existing role. * @param bool $append + * @param string $privs * @return Result */ - public function setRest($privs, $append = null) + public function setRest($append = null, $privs = null) { - $params = ['privs' => $privs, - 'append' => $append]; + $params = ['append' => $append, + 'privs' => $privs]; return $this->getClient()->set("/access/roles/{$this->roleid}", $params); } /** - * Create new role. - * @param string $privs + * Update an existing role. * @param bool $append + * @param string $privs * @return Result */ - public function updateRole($privs, $append = null) + public function updateRole($append = null, $privs = null) { - return $this->setRest($privs, $append); + return $this->setRest($append, $privs); } } @@ -20200,7 +21572,7 @@ public function setRest($password, $userid) * @param string $userid User ID * @return Result */ - public function changePasssword($password, $userid) + public function changePassword($password, $userid) { return $this->setRest($password, $userid); }