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
6d806418
Commit
6d806418
authored
Nov 14, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve ceph API paths
parent
e67078ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
13 deletions
+11
-13
Ceph.pm
PVE/API2/Ceph.pm
+10
-12
Ceph.js
www/manager/node/Ceph.js
+1
-1
No files found.
PVE/API2/Ceph.pm
View file @
6d806418
...
...
@@ -259,11 +259,8 @@ __PACKAGE__->register_method ({
my
$result
=
[
{
name
=>
'
init
'
},
{
name
=>
'
createmon
'
},
{
name
=>
'
destroymon
'
},
{
name
=>
'
listmon
'
},
{
name
=>
'
createosd
'
},
{
name
=>
'
destroyosd
'
},
{
name
=>
'
mon
'
},
{
name
=>
'
osd
'
},
{
name
=>
'
stop
'
},
{
name
=>
'
start
'
},
{
name
=>
'
status
'
},
...
...
@@ -297,7 +294,7 @@ __PACKAGE__->register_method ({
__PACKAGE__
->
register_method
({
name
=>
'
listmon
',
path
=>
'
list
mon
',
path
=>
'
mon
',
method
=>
'
GET
',
description
=>
"
Get Ceph monitor list.
",
proxyto
=>
'
node
',
...
...
@@ -317,6 +314,7 @@ __PACKAGE__->register_method ({
addr
=>
{
type
=>
'
string
'
},
},
},
links
=>
[
{
rel
=>
'
child
',
href
=>
"
{name}
"
}
],
},
code
=>
sub
{
my
(
$param
)
=
@_
;
...
...
@@ -426,7 +424,7 @@ __PACKAGE__->register_method ({
__PACKAGE__
->
register_method
({
name
=>
'
createmon
',
path
=>
'
create
mon
',
path
=>
'
mon
',
method
=>
'
POST
',
description
=>
"
Create Ceph Monitor
",
proxyto
=>
'
node
',
...
...
@@ -535,8 +533,8 @@ __PACKAGE__->register_method ({
__PACKAGE__
->
register_method
({
name
=>
'
destroymon
',
path
=>
'
destroymon
',
method
=>
'
POST
',
path
=>
'
mon/{monid}
',
method
=>
'
DELETE
',
description
=>
"
Destroy Ceph monitor.
",
proxyto
=>
'
node
',
protected
=>
1
,
...
...
@@ -703,7 +701,7 @@ __PACKAGE__->register_method ({
__PACKAGE__
->
register_method
({
name
=>
'
createosd
',
path
=>
'
create
osd
',
path
=>
'
osd
',
method
=>
'
POST
',
description
=>
"
Create OSD
",
proxyto
=>
'
node
',
...
...
@@ -750,8 +748,8 @@ __PACKAGE__->register_method ({
__PACKAGE__
->
register_method
({
name
=>
'
destroyosd
',
path
=>
'
destroyosd
',
method
=>
'
POST
',
path
=>
'
osd/{osdid}
',
method
=>
'
DELETE
',
description
=>
"
Destroy OSD
",
proxyto
=>
'
node
',
protected
=>
1
,
...
...
www/manager/node/Ceph.js
View file @
6d806418
...
...
@@ -19,7 +19,7 @@ Ext.define('PVE.node.CephMonList', {
model
:
'
ceph-mon-list
'
,
proxy
:
{
type
:
'
pve
'
,
url
:
"
/api2/json/nodes/
"
+
nodename
+
"
/ceph/
list
mon
"
url
:
"
/api2/json/nodes/
"
+
nodename
+
"
/ceph/mon
"
}
});
...
...
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