[pve-devel] [PATCH 01/13] add template_create

Dietmar Maurer dietmar at proxmox.com
Fri Feb 15 07:44:19 CET 2013


> +__PACKAGE__->register_method({
> +    name => 'template',
> +    path => '{vmid}/template',
> +    method => 'POST',
> +    protected => 1,
> +    proxyto => 'node',
> +    description => "Create a Template.",
> +    permissions => {
> +	check => ['perm', '/vms/{vmid}', [ 'VM.Template' ]],
> +    },

What is 'VM.Template'? I guess we need to have the same permissions as on create instead.

If the user can create/delete the VM and all Storage volumes, he is also allowed to create the template.

Or what exactly was your thinking?




More information about the pve-devel mailing list