cinder.api.contrib.admin_actions module

class AdminController(*args, **kwargs)

Bases: Controller

Abstract base class for AdminControllers.

authorize(context, action_name, target_obj=None)
collection = None
validate_update(req, body)
wsgi_actions = {'os-force_delete': '_force_delete', 'os-reset_status': '_reset_status'}
wsgi_extensions = []
class Admin_actions(ext_mgr)

Bases: ExtensionDescriptor

Enable admin actions.

alias = 'os-admin-actions'
get_controller_extensions()

List of extensions.ControllerExtension extension objects.

Controller extensions are used to extend existing controllers.

name = 'AdminActions'
updated = '2012-08-25T00:00:00+00:00'
class BackupAdminController(*args, **kwargs)

Bases: AdminController

AdminController for Backups.

collection = 'backups'
wsgi_actions = {'os-force_delete': '_force_delete', 'os-reset_status': '_reset_status'}
wsgi_extensions = []
class SnapshotAdminController(*args, **kwargs)

Bases: AdminController

AdminController for Snapshots.

collection = 'snapshots'
validate_update(req, body)
wsgi_actions = {'os-force_delete': '_force_delete', 'os-reset_status': '_reset_status'}
wsgi_extensions = []
class VolumeAdminController(*args, **kwargs)

Bases: AdminController

AdminController for Volumes.

collection = 'volumes'
validate_update(req, body)
wsgi_actions = {'os-extend_volume_completion': '_extend_volume_completion', 'os-force_delete': '_force_delete', 'os-force_detach': '_force_detach', 'os-migrate_volume': '_migrate_volume', 'os-migrate_volume_completion': '_migrate_volume_completion', 'os-reset_status': '_reset_status'}
wsgi_extensions = []