Update os_compute_api:os-flavor-extra-specs:index docs for 2.47
The 2.47 compute API relies on policy rule os_compute_api:os-flavor-extra-specs:index to determine if flavor extra specs should be shown in the embedded flavor response when showing server details, updating a server or rebuilding a server. This change updates the documentation for the policy rule to indicate its usage in those APIs. Change-Id: I1116751f2a065edf15ea7d492abde6e01c3e4cdb Partial-Bug: #1763741
This commit is contained in:
@@ -72,11 +72,31 @@ flavor_extra_specs_policies = [
|
|||||||
policy.DocumentedRuleDefault(
|
policy.DocumentedRuleDefault(
|
||||||
POLICY_ROOT % 'index',
|
POLICY_ROOT % 'index',
|
||||||
base.RULE_ADMIN_OR_OWNER,
|
base.RULE_ADMIN_OR_OWNER,
|
||||||
"List extra specs for a flavor",
|
"List extra specs for a flavor. Starting with microversion 2.47, "
|
||||||
|
"the flavor used for a server is also returned in the response "
|
||||||
|
"when showing server details, updating a server or rebuilding a "
|
||||||
|
"server.",
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
'path': '/flavors/{flavor_id}/os-extra_specs/',
|
'path': '/flavors/{flavor_id}/os-extra_specs/',
|
||||||
'method': 'GET'
|
'method': 'GET'
|
||||||
|
},
|
||||||
|
# Microversion 2.47 operations for servers:
|
||||||
|
{
|
||||||
|
'path': '/servers/detail',
|
||||||
|
'method': 'GET'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'path': '/servers/{server_id}',
|
||||||
|
'method': 'GET'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'path': '/servers/{server_id}',
|
||||||
|
'method': 'PUT'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'path': '/servers/{server_id}/action (rebuild)',
|
||||||
|
'method': 'POST'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user