keystone.api.limits module

class keystone.api.limits.LimitModelResource[source]

Bases: Resource

get()[source]

Retrieve enforcement model.

GET /v3/limits/model

methods: t.ClassVar[t.Collection[str] | None] = {'GET'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

class keystone.api.limits.LimitResource[source]

Bases: ResourceBase

collection_key: str = 'limits'
delete(limit_id)[source]

Delete a limit.

DELETE /v3/limits/{limit_id}

get(limit_id)[source]

Retrieve an existing limit.

GET /v3/limits/{limit_id}

get_member_from_driver
json_home_resource_status = 'experimental'
member_key: str = 'limit'
methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET', 'PATCH'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

patch(limit_id)[source]

Update an existing limit.

PATCH /v3/limits/{limit_id}

class keystone.api.limits.LimitsAPI(blueprint_url_prefix='', api_url_prefix='', default_mediatype='application/json', decorators=None, errors=None)[source]

Bases: APIBase

resource_mapping = [(<class 'keystone.api.limits.LimitsResource'>, '/limits', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/limits', 'experimental', {})), (<class 'keystone.api.limits.LimitResource'>, '/limits/<string:limit_id>', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/limit', 'experimental', {'limit_id': 'https://docs.openstack.org/api/openstack-identity/3/param/limit_id'})), (<class 'keystone.api.limits.LimitModelResource'>, '/limits/model', None, {}, ('https://docs.openstack.org/api/openstack-identity/3/rel/limit_model', 'experimental', {}))]
class keystone.api.limits.LimitsResource[source]

Bases: ResourceBase

collection_key: str = 'limits'
get()[source]

List limits.

GET /v3/limits

get_member_from_driver
json_home_resource_status = 'experimental'
member_key: str = 'limit'
methods: t.ClassVar[t.Collection[str] | None] = {'GET', 'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post()[source]

Create new limits.

POST /v3/limits