The openstack_dashboard.api.rest.policy ModuleΒΆ

class openstack_dashboard.api.rest.policy.Policy(**kwargs)[source]

Bases: django.views.generic.base.View

API for interacting with the policy engine.

post(request, *args, **kw)[source]

Check policy rules.

Check the group of policy rules supplied in the POST application/json object. The policy target, if specified will also be passed in to the policy check method as well.

The action returns an object with one key: “allowed” and the value is the result of the policy check, True or False.

url_regex = 'policy/$'

Previous topic

The openstack_dashboard.api.rest.json_encoder Module

Next topic

The openstack_dashboard.api.rest.config Module

Project Source

This Page