cinder.api.contrib.quotas module

class QuotaSetsController(view_builder=None)

Bases: cinder.api.openstack.wsgi.Controller

defaults(req, id)
delete(req, id)

Delete Quota for a particular tenant.

This works for hierarchical and non-hierarchical projects. For hierarchical projects only immediate parent admin or the CLOUD admin are able to perform a delete.

Parameters
  • req – request

  • id – target project id that needs to be deleted

show(req, id)

Show quota for a particular tenant

This works for hierarchical and non-hierarchical projects. For hierarchical projects admin of current project, immediate parent of the project or the CLOUD admin are able to perform a show.

Parameters
  • req – request

  • id – target project id that needs to be shown

update(req, id, body)

Update Quota for a particular tenant

This works for hierarchical and non-hierarchical projects. For hierarchical projects only immediate parent admin or the CLOUD admin are able to perform an update.

Parameters
  • req – request

  • id – target project id that needs to be updated

  • body – key, value pair that will be applied to the resources if the update succeeds

validate_setup_for_nested_quota_use(req)

Validates that the setup supports using nested quotas.

Ensures that Keystone v3 or greater is being used, and that the existing quotas make sense to nest in the current hierarchy (e.g. that no child quota would be larger than it’s parent).

wsgi_actions = {}
wsgi_extensions = []
class Quotas(ext_mgr)

Bases: cinder.api.extensions.ExtensionDescriptor

Quota management support.

alias = 'os-quota-sets'
get_resources()

List of extensions.ResourceExtension extension objects.

Resources define new nouns, and are accessible through URLs.

name = 'Quotas'
updated = '2011-08-08T00:00:00+00:00'