diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-07-12 05:56:35 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-07-12 05:56:35 +0000 |
commit | 0ffe7b27892fde243fc1006f800f309c10d66028 (patch) | |
tree | fa7e685d68c7b0c0bf98c59972f9fb0b91b0d5d6 /api-ref | |
parent | 211e5ec9471a98035a14809b13bf799f83d9afbf (diff) | |
parent | 92e0efeefd6782f205dc6a2b1f8e8a97f146596d (diff) | |
download | nova-0ffe7b27892fde243fc1006f800f309c10d66028.tar.gz |
Merge "Fix quota class set APIs"
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/os-quota-class-sets.inc | 24 | ||||
-rw-r--r-- | api-ref/source/parameters.yaml | 11 |
2 files changed, 26 insertions, 9 deletions
diff --git a/api-ref/source/os-quota-class-sets.inc b/api-ref/source/os-quota-class-sets.inc index 8588737d8d..97932e80b2 100644 --- a/api-ref/source/os-quota-class-sets.inc +++ b/api-ref/source/os-quota-class-sets.inc @@ -26,14 +26,18 @@ Nova supports implicit 'default' Quota Class only. for more details. .. warning:: - There is a bug in the v2.1 API and the legacy v2 compatible API which does - not return the ``server_groups`` and ``server_group_members`` quotas in + There is a bug in the v2.1 API till microversion 2.49 and + the legacy v2 compatible API which does not return the + ``server_groups`` and ``server_group_members`` quotas in GET and PUT ``os-quota-class-sets`` API response, whereas the v2 API used to return those keys in the API response. There is workaround to get the ``server_groups`` and ``server_group_members`` quotas using :ref:`list-default-quotas-for-tenant` API but that is per project quota. + This issue is fixed in microversion 2.50, here onwards + ``server_groups`` and ``server_group_members`` keys are + returned in API response body. Show the quota for Quota Class ============================== @@ -72,11 +76,13 @@ Response - ram: ram_quota_class - security_group_rules: security_group_rules_quota_class - security_groups: security_groups_quota_class + - server_groups: server_groups_quota_class + - server_group_members: server_group_members_quota_class - networks: networks_quota_optional -**Example Show A Quota Class: JSON response** +**Example Show A Quota Class: JSON response(2.50)** -.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/quota-classes-show-get-resp.json +.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/v2.50/quota-classes-show-get-resp.json :language: javascript Create or Update Quotas for Quota Class @@ -117,9 +123,9 @@ Request - server_group_members: server_group_members_quota_optional - networks: networks_quota_optional -**Example Update Quotas: JSON request** +**Example Update Quotas: JSON request(2.50)** -.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/quota-classes-update-post-req.json +.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/v2.50/quota-classes-update-post-req.json :language: javascript Response @@ -140,9 +146,11 @@ Response - ram: ram_quota_class - security_group_rules: security_group_rules_quota_class - security_groups: security_groups_quota_class + - server_groups: server_groups_quota_class + - server_group_members: server_group_members_quota_class - networks: networks_quota_optional -**Example Update Quotas: JSON response** +**Example Update Quotas: JSON response(2.50)** -.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/quota-classes-update-post-resp.json +.. literalinclude:: ../../doc/api_samples/os-quota-class-sets/v2.50/quota-classes-update-post-resp.json :language: javascript diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 3312a56608..d646ad29e9 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -3813,6 +3813,7 @@ networks_quota_optional: &networks_quota_optional in: body required: false type: integer + max_version: 2.50 networks_quota_set_optional: <<: *networks_quota_optional max_version: 2.35 @@ -4746,12 +4747,15 @@ server_group_id_body: in: body required: true type: string -server_group_members: +server_group_members: &server_group_members description: | The number of allowed members for each server group. in: body required: true type: integer +server_group_members_quota_class: + <<: *server_group_members + min_version: 2.50 server_group_members_quota_details: description: | The object of detailed server group members, including in_use, @@ -4777,6 +4781,11 @@ server_groups_list: in: body required: true type: array +server_groups_quota_class: + <<: *server_groups + description: | + The number of allowed server groups for the quota class. + min_version: 2.50 server_groups_quota_class_optional: <<: *server_groups description: | |