The ironic_inspector.main
Module¶
-
ironic_inspector.main.
api
(path, is_public_api=False, rule=None, verb_to_rule_map=None, **flask_kwargs)[source]¶ Decorator to wrap api methods.
Performs flask routing, exception convertion, generation of oslo context for request and API access policy enforcement.
Parameters: - path – flask app route path
- is_public_api – whether this API path should be treated as public, with minimal access enforcement
- rule – API access policy rule to enforce. If rule is None, the ‘default’ policy rule will be enforced, which is “deny all” if not overridden in policy confif file.
- verb_to_rule_map – if both rule and this are given, defines mapping between http verbs (uppercase) and strings to format the ‘rule’ string with
- kwargs – all the rest kwargs are passed to flask app.route