register standard option for snapshot name

This commit is contained in:
Dietmar Maurer 2012-09-10 08:55:04 +02:00
parent 154ccdcdbc
commit 8abd398b8a
2 changed files with 10 additions and 20 deletions

View File

@ -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 => {

View File

@ -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_)) {