Project

General

Profile

Cleanup #42514

Feature #40907: mgr/dashboard: REST API improvements

mgr/dashboard: REST API: express RBD hierarchies (pool > namespace > image > snapshot) via URL subparts

Added by Ernesto Puerta almost 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Component - RBD
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Currently, RBD items don't keep a URLized hierarchy, but composed IDs to convey those relationships. Ideally, this should be expressed by:

api/block/pool/<pool_id>/namespace/<namespace_id>/image/<image_id>/snapshot/<snapshot_id>

And every URL sub part should respond to the corresponding HTTP verbs (GET, POST, PUT, DELETE).

History

#1 Updated by Ricardo Marques almost 3 years ago

Note that namespace is optional, see the following comment for a possible solution:

https://github.com/ceph/ceph/pull/30935#discussion_r339778187

#2 Updated by Ernesto Puerta over 1 year ago

  • Project changed from mgr to Dashboard
  • Category changed from 139 to Component - RBD

Also available in: Atom PDF