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 conversion, 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 config 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
- ironic_inspector.main.generate_introspection_status(node)[source]¶
Return a dict representing current node status.
- Parameters:
node – a NodeInfo instance
- Returns:
dictionary