Dan Kenigsberg has submitted this change and it was merged.
Change subject: rest-api: Model StoragePools
......................................................................
rest-api: Model StoragePools
API Implemented:
----------------
/api/storagepools
* Create/connect new storage pool and manipulate connected pools
Actions:
/api/storagepools/create
- Create a new storage pool
/api/storagepools/connect
- Connect a storage pool
* The vdsm API does not maintain information about disconnected storage
pools so our API must deviate from REST norms by placing the connect verb
at the collection level instead of the resource level.
/api/storagepools/<id>/destroy
- Destroy a connected storage pool
/api/storagepools/<id>/disconnect
- Disconnect a storage pool
/api/storagepools/<id>/spmstart
- Start the SPM role on this host
/api/storagepools/<id>/spmstop
- Stop the SPM role on this host
Change-Id: Ica772c367b7d80e559a816ad7b40331b2ae81ac2
Signed-off-by: Adam Litke <agl(a)us.ibm.com>
---
M vdsm/rest/Controller.py
M vdsm/rest/templates/Makefile.am
M vdsm/rest/templates/api.xsd
M vdsm/rest/templates/root.json.x
M vdsm/rest/templates/root.xml.x
M vdsm/rest/templates/rsdl.xml
A vdsm/rest/templates/storagepool.json.x
A vdsm/rest/templates/storagepool.xml.x
A vdsm/rest/templates/storagepools.json.x
A vdsm/rest/templates/storagepools.xml.x
10 files changed, 509 insertions(+), 1 deletion(-)
Approvals:
Adam Litke: Verified
Dan Kenigsberg: Looks good to me, approved
--
To view, visit
http://gerrit.ovirt.org/3755
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ica772c367b7d80e559a816ad7b40331b2ae81ac2
Gerrit-PatchSet: 8
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Adam Litke <agl(a)us.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>