mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-03 04:26:09 +00:00
register standard option for snapshot name
This commit is contained in:
parent
154ccdcdbc
commit
8abd398b8a
@ -1939,11 +1939,7 @@ __PACKAGE__->register_method({
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
vmid => get_standard_option('pve-vmid'),
|
||||
snapname => {
|
||||
type => 'string',
|
||||
description => "The name of the snapshot",
|
||||
maxLength => 40,
|
||||
},
|
||||
snapname => get_standard_option('pve-snapshot-name'),
|
||||
vmstate => {
|
||||
optional => 1,
|
||||
type => 'boolean',
|
||||
@ -2002,11 +1998,7 @@ __PACKAGE__->register_method({
|
||||
properties => {
|
||||
vmid => get_standard_option('pve-vmid'),
|
||||
node => get_standard_option('pve-node'),
|
||||
snapname => {
|
||||
type => 'string',
|
||||
description => "The name of the snapshot",
|
||||
maxLength => 40,
|
||||
},
|
||||
snapname => get_standard_option('pve-snapshot-name'),
|
||||
},
|
||||
},
|
||||
returns => {
|
||||
@ -2042,11 +2034,7 @@ __PACKAGE__->register_method({
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
vmid => get_standard_option('pve-vmid'),
|
||||
snapname => {
|
||||
type => 'string',
|
||||
description => "The name of the snapshot",
|
||||
maxLength => 40,
|
||||
},
|
||||
snapname => get_standard_option('pve-snapshot-name'),
|
||||
},
|
||||
},
|
||||
returns => {
|
||||
@ -2091,11 +2079,7 @@ __PACKAGE__->register_method({
|
||||
properties => {
|
||||
node => get_standard_option('pve-node'),
|
||||
vmid => get_standard_option('pve-vmid'),
|
||||
snapname => {
|
||||
type => 'string',
|
||||
description => "The name of the snapshot",
|
||||
maxLength => 40,
|
||||
},
|
||||
snapname => get_standard_option('pve-snapshot-name'),
|
||||
},
|
||||
},
|
||||
returns => {
|
||||
|
@ -54,6 +54,12 @@ PVE::JSONSchema::register_standard_option('pve-qm-stateuri', {
|
||||
optional => 1,
|
||||
});
|
||||
|
||||
PVE::JSONSchema::register_standard_option('pve-snapshot-name', {
|
||||
description => "The name of the snapshot.",
|
||||
type => 'string', format => 'pve-configid',
|
||||
maxLength => 40,
|
||||
});
|
||||
|
||||
#no warnings 'redefine';
|
||||
|
||||
unless(defined(&_VZSYSCALLS_H_)) {
|
||||
|
Loading…
Reference in New Issue
Block a user