Refine the image API endpoints
The image APIs was designed to pull/delete image at individual compute node but these APIs caused a lot of confusions to our users, for example https:/
This BP proposes to redesign the image API as below.
* List images: GET /images?host=<host>
* Get an image: GET /images/
* Pull image: POST /images -d '{"host": ...}'
* Delete image: DELETE /images/
NOTE: 'host' is a mandatory parameter for above endpoints.
The default policy should disallow normal users to access those APIs since only admin can manage individual host.
Blueprint information
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Require admin privilege for image APIs
Addressed by: https:/
[WIP] Add parameter 'host' to images API
Addressed by: https:/
Add 'host' parameter on image create
Addressed by: https:/
Add 'host' parameter on image delete