Merge "Add description to policies in used_limits"
This commit is contained in:
@@ -26,9 +26,22 @@ used_limits_policies = [
|
|||||||
policy.RuleDefault(
|
policy.RuleDefault(
|
||||||
name=POLICY_ROOT % 'discoverable',
|
name=POLICY_ROOT % 'discoverable',
|
||||||
check_str=base.RULE_ANY),
|
check_str=base.RULE_ANY),
|
||||||
policy.RuleDefault(
|
# TODO(aunnam): Remove this rule after we seperate the scope check from
|
||||||
name=BASE_POLICY_NAME,
|
# policies, as this is only checking the scope.
|
||||||
check_str=base.RULE_ADMIN_API),
|
base.create_rule_default(
|
||||||
|
BASE_POLICY_NAME,
|
||||||
|
base.RULE_ADMIN_API,
|
||||||
|
"""Shows rate and absolute limits for the project.
|
||||||
|
|
||||||
|
This policy only checks if the user has access to the requested
|
||||||
|
project limits. And this check is performed only after the check
|
||||||
|
os_compute_api:limits passes""",
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'method': 'GET',
|
||||||
|
'path': '/limits'
|
||||||
|
}
|
||||||
|
]),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user