diff options
Diffstat (limited to 'ironic/common/policy.py')
-rw-r--r-- | ironic/common/policy.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ironic/common/policy.py b/ironic/common/policy.py index 7fdd398f9..afce51c77 100644 --- a/ironic/common/policy.py +++ b/ironic/common/policy.py @@ -954,6 +954,19 @@ node_policies = [ # operating context. deprecated_rule=deprecated_node_get ), + policy.DocumentedRuleDefault( + name='baremetal:node:inventory:get', + check_str=SYSTEM_OR_OWNER_READER, + scope_types=['system', 'project'], + description='Retrieve introspection data for a node.', + operations=[ + {'path': '/nodes/{node_ident}/inventory', 'method': 'GET'}, + ], + # This rule fallsback to deprecated_node_get in order to provide a + # mechanism so the additional policies only engage in an updated + # operating context. + deprecated_rule=deprecated_node_get + ), ] |