This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.1 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: nova.api.openstack.common.OpenstackController

Base wsgi.Controller for retrieving/displaying images.

create(req)

Snapshot a server instance and save the image.

Parameters:
  • reqwsgi.Request object
delete(req, id)

Delete an image, if allowed.

Parameters:
  • reqwsgi.Request object
  • id – Image identifier (integer)
detail(req)

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

Parameters:
  • reqwsgi.Request object.
get_builder(request)

Indicates that you must use a Controller subclass.

index(req)

Return an index listing of images available to the request.

Parameters:
  • reqwsgi.Request object
show(req, id)

Return detailed information about a specific image.

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

Bases: nova.api.openstack.images.Controller

Version 1.0 specific controller logic.

get_builder(request)

Property to get the ViewBuilder class we need to use.

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

Bases: nova.api.openstack.images.Controller

Version 1.1 specific controller logic.

get_builder(request)

Property to get the ViewBuilder class we need to use.

get_default_xmlns(req)