Merge "Add policy in code documentation for os-set_bootable API"

This commit is contained in:
Zuul 2018-08-08 21:19:29 +00:00 committed by Gerrit Code Review
commit d9877f83de
1 changed files with 7 additions and 1 deletions

View File

@ -83,11 +83,17 @@ volumes_policies = [
policy.DocumentedRuleDefault(
name=UPDATE_POLICY,
check_str=base.RULE_ADMIN_OR_OWNER,
description="Update volume.",
description="Update volume or update a volume's bootable status.",
operations=[
{
'method': 'PUT',
'path': '/volumes'
},
# The API below calls the volume update API internally, which in
# turn enforces the update policy.
{
'method': 'POST',
'path': '/volumes/{volume_id}/action (os-set_bootable)'
}
]),
policy.DocumentedRuleDefault(