- 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 conversion, generation of oslo context for request and API access policy enforcement.
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
Return a dict representing current node status.
node – a NodeInfo instance
Create a coordinator instance for non-standalone case.