this is useful as meta information for e.g., provisioning or config
management systems
adding the info also to the 'status' api call to make it easier to show
it in the gui
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
'startup' => 1,
'tdf' => 1,
'template' => 1,
'startup' => 1,
'tdf' => 1,
'template' => 1,
};
my $vmpoweroptions = {
};
my $vmpoweroptions = {
description => "Configure additional enhancements for SPICE.",
optional => 1
},
description => "Configure additional enhancements for SPICE.",
optional => 1
},
+ tags => {
+ type => 'string', format => 'pve-tag-list',
+ description => 'Tags of the VM. This is only meta information.',
+ optional => 1,
+ },
description => "The current config lock, if any.",
type => 'string',
optional => 1,
description => "The current config lock, if any.",
type => 'string',
optional => 1,
+ },
+ tags => {
+ description => "The current configured tags, if any",
+ type => 'string',
+ optional => 1,
+ },
};
my $last_proc_pid_stat;
};
my $last_proc_pid_stat;
$d->{serial} = 1 if conf_has_serial($conf);
$d->{lock} = $conf->{lock} if $conf->{lock};
$d->{serial} = 1 if conf_has_serial($conf);
$d->{lock} = $conf->{lock} if $conf->{lock};
+ $d->{tags} = $conf->{tags} if defined($conf->{tags});
'protection' => 1,
'vmstatestorage' => 1,
'hookscript' => 1,
'protection' => 1,
'vmstatestorage' => 1,
'hookscript' => 1,
};
# hotplug changes in [PENDING]
};
# hotplug changes in [PENDING]