This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.api.openstack.images Module

class nova.api.openstack.images.Controller(image_service=None, compute_service=None)

Bases: object

Base controller for retrieving/displaying images.

delete(req, id)

Delete an image, if allowed.

Parameters:
  • reqwsgi.Request object
  • id – Image identifier (integer)
get_builder(request)

Indicates that you must use a Controller subclass.

show(req, id)

Return detailed information about a specific image.

Parameters:
  • reqwsgi.Request object
  • id – Image identifier
class nova.api.openstack.images.ControllerV10(image_service=None, compute_service=None)

Bases: nova.api.openstack.images.Controller

Version 1.0 specific controller logic.

create(*args, **kwargs)

Snapshot a server instance and save the image.

detail(req)

Return a detailed index listing of images available to the request.

Parameters:reqwsgi.Request object.
get_builder(request)

Property to get the ViewBuilder class we need to use.

index(req)

Return an index listing of images available to the request.

Parameters:reqwsgi.Request object
class nova.api.openstack.images.ControllerV11(image_service=None, compute_service=None)

Bases: nova.api.openstack.images.Controller

Version 1.1 specific controller logic.

create(*args, **kwargs)
detail(req)

Return a detailed index listing of images available to the request.

Parameters:reqwsgi.Request object.
get_builder(req)

Property to get the ViewBuilder class we need to use.

index(req)

Return an index listing of images available to the request.

Parameters:reqwsgi.Request object
class nova.api.openstack.images.ImageXMLSerializer

Bases: nova.api.openstack.wsgi.XMLDictSerializer

detail(images_dict)
index(images_dict)
show(image_dict)
nova.api.openstack.images.create_resource(version='1.0')