zun_ui.api.rest_api
Modulezun_ui.api.rest_api
Module¶zun_ui.api.rest_api.
Container
(**kwargs)[source]Bases: django.views.generic.base.View
API for retrieving a single container
delete
(request, *args, **kw)[source]Delete single Container forcely by id.
Returns HTTP 204 (no content) on successful deletion.
get
(request, *args, **kw)[source]Get a specific container
patch
(request, *args, **kw)[source]Update a Container.
Returns the Container object on success.
url_regex
= ‘zun/containers/(?P<id>[^/]+)$’zun_ui.api.rest_api.
ContainerActions
(**kwargs)[source]Bases: django.views.generic.base.View
API for retrieving a single container
get
(request, *args, **kw)[source]Get a specific container info
post
(request, *args, **kw)[source]Execute a action of the Containers.
url_regex
= ‘zun/containers/(?P<id>[^/]+)/(?P<action>[^/]+)$’zun_ui.api.rest_api.
Containers
(**kwargs)[source]Bases: django.views.generic.base.View
API for Zun Containers
delete
(request, *args, **kw)[source]Delete one or more Containers by id.
Returns HTTP 204 (no content) on successful deletion.
get
(request, *args, **kw)[source]Get a list of the Containers for a project.
The returned result is an object with property ‘items’ and each item under this is a Container.
post
(request, *args, **kw)[source]Create a new Container.
Returns the new Container object on success. If ‘run’ attribute is set true, do ‘run’ instead ‘create’
url_regex
= ‘zun/containers/$’zun_ui.api.rest_api.
Images
(**kwargs)[source]Bases: django.views.generic.base.View
API for Zun Images
get
(request, *args, **kw)[source]Get a list of the Images for admin users.
The returned result is an object with property ‘items’ and each item under this is a Image.
post
(request, *args, **kw)[source]Create a new Image.
Returns the new Image object on success.
url_regex
= ‘zun/images/$’zun_ui.api.rest_api.
change_to_id
(obj)[source]Change key named ‘uuid’ to ‘id’
Zun returns objects with a field called ‘uuid’ many of Horizons directives however expect objects to have a field called ‘id’.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.