]> git.proxmox.com Git - pve-manager.git/commitdiff
api: use standard vmid type for /cluster/resources
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 2 Aug 2023 12:40:18 +0000 (14:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 2 Aug 2023 12:40:18 +0000 (14:40 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/API2/Cluster.pm

index 3daf6ae5ba772c510c4453780eb8bba8281ce9c4..31e9f51e4dab692340c2f2abdd73aa7c03a02ec6 100644 (file)
@@ -329,12 +329,10 @@ __PACKAGE__->register_method({
                    type => 'string',
                    optional => 1,
                },
-               vmid => {
+               vmid => get_standard_option('pve-vmid', {
                    description => "The numerical vmid (when type in qemu,lxc).",
-                   type => 'integer',
                    optional => 1,
-                   minimum => 1,
-               },
+               }),
                'cgroup-mode' => {
                    description => "The cgroup mode the node operates under (when type == node).",
                    type => 'integer',