Skip to content

Commit d6cdf3c

Browse files
authored
Merge pull request ceph#61893 from laimis9133/main
mgr/dashboard: update openapi specification for /api/cluster/user/export Reviewed-by: Anthony D Atri <[email protected]> Reviewed-by: Nizamudeen A <[email protected]>
2 parents 0b7128e + c3c9480 commit d6cdf3c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pybind/mgr/dashboard/controllers/ceph_users.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ def model(user_entity: str):
217217
extra_endpoints=[
218218
('export', CRUDCollectionMethod(
219219
func=RESTController.Collection('POST', 'export')(CephUserEndpoints.export),
220-
doc=EndpointDoc("Export Ceph Users")
220+
doc=EndpointDoc("Export Ceph Users",
221+
parameters={
222+
"entities": Param([str], "List of entities to export")
223+
})
221224
))
222225
],
223226
selection_type=SelectionType.MULTI,

src/pybind/mgr/dashboard/openapi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3883,7 +3883,10 @@ paths:
38833883
schema:
38843884
properties:
38853885
entities:
3886-
type: string
3886+
description: List of entities to export
3887+
items:
3888+
type: string
3889+
type: array
38873890
required:
38883891
- entities
38893892
type: object

0 commit comments

Comments
 (0)