mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-11 19:26:46 +00:00
use new syntax for permission attribute
This commit is contained in:
parent
fcdb011702
commit
378b359eef
@ -278,8 +278,7 @@ __PACKAGE__->register_method({
|
|||||||
method => 'GET',
|
method => 'GET',
|
||||||
protected => 1, # fixme: can we avoid that?
|
protected => 1, # fixme: can we avoid that?
|
||||||
permissions => {
|
permissions => {
|
||||||
path => '/vms/{vmid}',
|
check => ['perm', '/vms/{vmid}', [ 'VM.Audit' ]],
|
||||||
privs => [ 'VM.Audit' ],
|
|
||||||
},
|
},
|
||||||
description => "Read VM RRD statistics (returns PNG)",
|
description => "Read VM RRD statistics (returns PNG)",
|
||||||
parameters => {
|
parameters => {
|
||||||
@ -325,8 +324,7 @@ __PACKAGE__->register_method({
|
|||||||
method => 'GET',
|
method => 'GET',
|
||||||
protected => 1, # fixme: can we avoid that?
|
protected => 1, # fixme: can we avoid that?
|
||||||
permissions => {
|
permissions => {
|
||||||
path => '/vms/{vmid}',
|
check => ['perm', '/vms/{vmid}', [ 'VM.Audit' ]],
|
||||||
privs => [ 'VM.Audit' ],
|
|
||||||
},
|
},
|
||||||
description => "Read VM RRD statistics",
|
description => "Read VM RRD statistics",
|
||||||
parameters => {
|
parameters => {
|
||||||
@ -700,8 +698,7 @@ __PACKAGE__->register_method({
|
|||||||
method => 'POST',
|
method => 'POST',
|
||||||
protected => 1,
|
protected => 1,
|
||||||
permissions => {
|
permissions => {
|
||||||
path => '/vms/{vmid}',
|
check => ['perm', '/vms/{vmid}', [ 'VM.Console' ]],
|
||||||
privs => [ 'VM.Console' ],
|
|
||||||
},
|
},
|
||||||
description => "Creates a TCP VNC proxy connections.",
|
description => "Creates a TCP VNC proxy connections.",
|
||||||
parameters => {
|
parameters => {
|
||||||
|
Loading…
Reference in New Issue
Block a user