Add description to policies in certificates.py

Change-Id: I6eb0881d378e286e36b4cd04c494409612ee152e
blueprint: policy-docs
This commit is contained in:
Sujitha 2017-03-21 20:10:54 +00:00 committed by John Garbutt
parent 390c7e420f
commit 9eea900120
1 changed files with 20 additions and 6 deletions

View File

@ -25,12 +25,26 @@ certificates_policies = [
policy.RuleDefault(
name=POLICY_ROOT % 'discoverable',
check_str=base.RULE_ANY),
policy.RuleDefault(
name=POLICY_ROOT % 'create',
check_str=base.RULE_ADMIN_OR_OWNER),
policy.RuleDefault(
name=POLICY_ROOT % 'show',
check_str=base.RULE_ADMIN_OR_OWNER),
base.create_rule_default(
POLICY_ROOT % 'create',
base.RULE_ADMIN_OR_OWNER,
"Create a root certificate. This API is deprecated.",
[
{
'method': 'POST',
'path': '/os-certificates'
}
]),
base.create_rule_default(
POLICY_ROOT % 'show',
base.RULE_ADMIN_OR_OWNER,
"Show details for a root certificate. This API is deprecated.",
[
{
'method': 'GET',
'path': '/os-certificates/root'
}
])
]