From d435f2f03ffe6cb473c516b4d21027c706467d59 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sat, 14 Apr 2018 08:42:58 -0400 Subject: [PATCH] Update os_compute_api:os-flavor-extra-specs:index docs for 2.61 The 2.61 microversion relies on this policy rule to determine if extra specs should be included directly in responses for the flavor resource directly, specifically showing flavor details, updating the description of a flavor, and creating a new flavor. Change-Id: I8d8bc5c74f9eb9a4c36418d36990cf6db78af061 Closes-Bug: #1763741 --- nova/policies/flavor_extra_specs.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nova/policies/flavor_extra_specs.py b/nova/policies/flavor_extra_specs.py index 4103731714f3..f305e42cbf44 100644 --- a/nova/policies/flavor_extra_specs.py +++ b/nova/policies/flavor_extra_specs.py @@ -75,7 +75,8 @@ flavor_extra_specs_policies = [ "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.", + "server. Starting with microversion 2.61, extra specs may be " + "returned in responses for the flavor resource.", [ { 'path': '/flavors/{flavor_id}/os-extra_specs/', @@ -97,6 +98,23 @@ flavor_extra_specs_policies = [ { 'path': '/servers/{server_id}/action (rebuild)', 'method': 'POST' + }, + # Microversion 2.61 operations for flavors: + { + 'path': '/flavors', + 'method': 'POST' + }, + { + 'path': '/flavors/detail', + 'method': 'GET' + }, + { + 'path': '/flavors/{flavor_id}', + 'method': 'GET' + }, + { + 'path': '/flavors/{flavor_id}', + 'method': 'PUT' } ] ),