Policy Engine For Heat.
Bases: object
Responsible for loading and enforcing rules.
Whether or not is admin according to policy.
By default the rule will check whether or not roles contains ‘admin’ role and is admin project.
- param context:
Heat request context
- returns:
A non-False value if the user is admin according to policy
Verifies that the action is valid on the target in this context.
context – Heat request context
action – String representing the action to be checked
target – Dictionary representing the object of the action.
heat.common.exception.Forbidden – When permission is denied (or self.exc if supplied).
A non-False value if access is allowed.
Bases: Enforcer
Verifies that the action is valid on the target in this context.
context – Heat request context
action – String representing the action to be checked
target – Dictionary representing the object of the action.
heat.common.exception.Forbidden – When permission is denied (or self.exc if supplied).
A non-False value if access is allowed.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.