Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
563faf84
Commit
563faf84
authored
Feb 06, 2012
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add permissions for service API
parent
16639eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
Services.pm
PVE/API2/Services.pm
+15
-0
No files found.
PVE/API2/Services.pm
View file @
563faf84
...
@@ -194,6 +194,9 @@ __PACKAGE__->register_method({
...
@@ -194,6 +194,9 @@ __PACKAGE__->register_method({
path
=>
'
{service}
',
path
=>
'
{service}
',
method
=>
'
GET
',
method
=>
'
GET
',
description
=>
"
Directory index
",
description
=>
"
Directory index
",
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Audit
'
]],
},
parameters
=>
{
parameters
=>
{
additionalProperties
=>
0
,
additionalProperties
=>
0
,
properties
=>
{
properties
=>
{
...
@@ -263,6 +266,9 @@ __PACKAGE__->register_method ({
...
@@ -263,6 +266,9 @@ __PACKAGE__->register_method ({
path
=>
'
{service}/start
',
path
=>
'
{service}/start
',
method
=>
'
POST
',
method
=>
'
POST
',
description
=>
"
Start service.
",
description
=>
"
Start service.
",
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Modify
'
]],
},
proxyto
=>
'
node
',
proxyto
=>
'
node
',
protected
=>
1
,
protected
=>
1
,
parameters
=>
{
parameters
=>
{
...
@@ -301,6 +307,9 @@ __PACKAGE__->register_method ({
...
@@ -301,6 +307,9 @@ __PACKAGE__->register_method ({
path
=>
'
{service}/stop
',
path
=>
'
{service}/stop
',
method
=>
'
POST
',
method
=>
'
POST
',
description
=>
"
Stop service.
",
description
=>
"
Stop service.
",
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Modify
'
]],
},
proxyto
=>
'
node
',
proxyto
=>
'
node
',
protected
=>
1
,
protected
=>
1
,
parameters
=>
{
parameters
=>
{
...
@@ -339,6 +348,9 @@ __PACKAGE__->register_method ({
...
@@ -339,6 +348,9 @@ __PACKAGE__->register_method ({
path
=>
'
{service}/restart
',
path
=>
'
{service}/restart
',
method
=>
'
POST
',
method
=>
'
POST
',
description
=>
"
Restart service.
",
description
=>
"
Restart service.
",
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Modify
'
]],
},
proxyto
=>
'
node
',
proxyto
=>
'
node
',
protected
=>
1
,
protected
=>
1
,
parameters
=>
{
parameters
=>
{
...
@@ -377,6 +389,9 @@ __PACKAGE__->register_method ({
...
@@ -377,6 +389,9 @@ __PACKAGE__->register_method ({
path
=>
'
{service}/reload
',
path
=>
'
{service}/reload
',
method
=>
'
POST
',
method
=>
'
POST
',
description
=>
"
Reload service.
",
description
=>
"
Reload service.
",
permissions
=>
{
check
=>
['
perm
',
'
/nodes/{node}
',
[
'
Sys.Modify
'
]],
},
proxyto
=>
'
node
',
proxyto
=>
'
node
',
protected
=>
1
,
protected
=>
1
,
parameters
=>
{
parameters
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment