mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 14:53:38 +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 => {
|
properties => {
|
||||||
node => get_standard_option('pve-node'),
|
node => get_standard_option('pve-node'),
|
||||||
vmid => get_standard_option('pve-vmid'),
|
vmid => get_standard_option('pve-vmid'),
|
||||||
snapname => {
|
snapname => get_standard_option('pve-snapshot-name'),
|
||||||
type => 'string',
|
|
||||||
description => "The name of the snapshot",
|
|
||||||
maxLength => 40,
|
|
||||||
},
|
|
||||||
vmstate => {
|
vmstate => {
|
||||||
optional => 1,
|
optional => 1,
|
||||||
type => 'boolean',
|
type => 'boolean',
|
||||||
@ -2002,11 +1998,7 @@ __PACKAGE__->register_method({
|
|||||||
properties => {
|
properties => {
|
||||||
vmid => get_standard_option('pve-vmid'),
|
vmid => get_standard_option('pve-vmid'),
|
||||||
node => get_standard_option('pve-node'),
|
node => get_standard_option('pve-node'),
|
||||||
snapname => {
|
snapname => get_standard_option('pve-snapshot-name'),
|
||||||
type => 'string',
|
|
||||||
description => "The name of the snapshot",
|
|
||||||
maxLength => 40,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => {
|
returns => {
|
||||||
@ -2042,11 +2034,7 @@ __PACKAGE__->register_method({
|
|||||||
properties => {
|
properties => {
|
||||||
node => get_standard_option('pve-node'),
|
node => get_standard_option('pve-node'),
|
||||||
vmid => get_standard_option('pve-vmid'),
|
vmid => get_standard_option('pve-vmid'),
|
||||||
snapname => {
|
snapname => get_standard_option('pve-snapshot-name'),
|
||||||
type => 'string',
|
|
||||||
description => "The name of the snapshot",
|
|
||||||
maxLength => 40,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => {
|
returns => {
|
||||||
@ -2091,11 +2079,7 @@ __PACKAGE__->register_method({
|
|||||||
properties => {
|
properties => {
|
||||||
node => get_standard_option('pve-node'),
|
node => get_standard_option('pve-node'),
|
||||||
vmid => get_standard_option('pve-vmid'),
|
vmid => get_standard_option('pve-vmid'),
|
||||||
snapname => {
|
snapname => get_standard_option('pve-snapshot-name'),
|
||||||
type => 'string',
|
|
||||||
description => "The name of the snapshot",
|
|
||||||
maxLength => 40,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
returns => {
|
returns => {
|
||||||
|
@ -54,6 +54,12 @@ PVE::JSONSchema::register_standard_option('pve-qm-stateuri', {
|
|||||||
optional => 1,
|
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';
|
#no warnings 'redefine';
|
||||||
|
|
||||||
unless(defined(&_VZSYSCALLS_H_)) {
|
unless(defined(&_VZSYSCALLS_H_)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user