mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-08 03:02:04 +00:00
add permissions for backup API
This commit is contained in:
parent
fb7d682464
commit
937515d61b
@ -191,6 +191,9 @@ __PACKAGE__->register_method({
|
|||||||
path => '',
|
path => '',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
description => "List vzdump backup schedule.",
|
description => "List vzdump backup schedule.",
|
||||||
|
permissions => {
|
||||||
|
check => ['perm', '/', ['Sys.Audit']],
|
||||||
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {},
|
properties => {},
|
||||||
@ -224,6 +227,9 @@ __PACKAGE__->register_method({
|
|||||||
method => 'POST',
|
method => 'POST',
|
||||||
protected => 1,
|
protected => 1,
|
||||||
description => "Create new vzdump backup job.",
|
description => "Create new vzdump backup job.",
|
||||||
|
permissions => {
|
||||||
|
check => ['perm', '/', ['Sys.Modify']],
|
||||||
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => PVE::VZDump::json_config_properties({
|
properties => PVE::VZDump::json_config_properties({
|
||||||
@ -266,6 +272,9 @@ __PACKAGE__->register_method({
|
|||||||
path => '{id}',
|
path => '{id}',
|
||||||
method => 'GET',
|
method => 'GET',
|
||||||
description => "Read vzdump backup job definition.",
|
description => "Read vzdump backup job definition.",
|
||||||
|
permissions => {
|
||||||
|
check => ['perm', '/', ['Sys.Audit']],
|
||||||
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => {
|
properties => {
|
||||||
@ -302,6 +311,9 @@ __PACKAGE__->register_method({
|
|||||||
path => '{id}',
|
path => '{id}',
|
||||||
method => 'DELETE',
|
method => 'DELETE',
|
||||||
description => "Delete vzdump backup job definition.",
|
description => "Delete vzdump backup job definition.",
|
||||||
|
permissions => {
|
||||||
|
check => ['perm', '/', ['Sys.Modify']],
|
||||||
|
},
|
||||||
protected => 1,
|
protected => 1,
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
@ -349,6 +361,9 @@ __PACKAGE__->register_method({
|
|||||||
method => 'PUT',
|
method => 'PUT',
|
||||||
protected => 1,
|
protected => 1,
|
||||||
description => "Update vzdump backup job definition.",
|
description => "Update vzdump backup job definition.",
|
||||||
|
permissions => {
|
||||||
|
check => ['perm', '/', ['Sys.Modify']],
|
||||||
|
},
|
||||||
parameters => {
|
parameters => {
|
||||||
additionalProperties => 0,
|
additionalProperties => 0,
|
||||||
properties => PVE::VZDump::json_config_properties({
|
properties => PVE::VZDump::json_config_properties({
|
||||||
|
Loading…
Reference in New Issue
Block a user