policy docs: Add volume summary under GET_ALL_POLICY entry
Using a codesearch [0] it is apparent that volume summary
enforces GET_ALL_POLICY [1]. Thus, this patchset includes
the entry for /volumes/summary under the GET_ALL_POLICY
documentation to signal to services and users all the APIs that
enforce that policy.
[0] http://codesearch.openstack.org/?q=vol_policy.GET_ALL_POLICY&i=nope&files=&repos=cinder
[1] 4b96310411/cinder/volume/api.py (L633)
Change-Id: Ic33f763df603f1170b8cf1bfc35cc285d5ed0669
This commit is contained in:
parent
2cbab15f1c
commit
a1138de9e0
|
@ -65,7 +65,7 @@ volumes_policies = [
|
|||
policy.DocumentedRuleDefault(
|
||||
name=GET_ALL_POLICY,
|
||||
check_str=base.RULE_ADMIN_OR_OWNER,
|
||||
description="List volumes.",
|
||||
description="List volumes or get summary of volumes.",
|
||||
operations=[
|
||||
{
|
||||
'method': 'GET',
|
||||
|
@ -74,6 +74,10 @@ volumes_policies = [
|
|||
{
|
||||
'method': 'GET',
|
||||
'path': '/volumes/detail'
|
||||
},
|
||||
{
|
||||
'method': 'GET',
|
||||
'path': '/volumes/summary'
|
||||
}
|
||||
]),
|
||||
policy.DocumentedRuleDefault(
|
||||
|
|
Loading…
Reference in New Issue