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>
description => "The current config lock, if any.",
type => 'string',
optional => 1,
+ },
+ tags => {
+ description => "The current configured tags, if any.",
+ type => 'string',
+ optional => 1,
}
};
$d->{cpus} = $cpucount if !$d->{cpus};
$d->{lock} = $conf->{lock} || '';
+ $d->{tags} = $conf->{tags} if defined($conf->{tags});
if ($d->{pid}) {
my $res = get_container_disk_usage($vmid, $d->{pid});
format => 'pve-volume-id',
description => 'Script that will be exectued during various steps in the containers lifetime.',
},
+ tags => {
+ type => 'string', format => 'pve-tag-list',
+ description => 'Tags of the Container. This is only meta information.',
+ optional => 1,
+ },
};
my $valid_lxc_conf_keys = {