summaryrefslogtreecommitdiff
path: root/api-ref
diff options
context:
space:
mode:
authorVictor Coutellier <victor.coutellier@gmail.com>2020-01-08 21:09:58 +0100
committerVictor Coutellier <victor.coutellier@gmail.com>2020-03-15 17:35:49 +0100
commit4018d6fb71a4e5bb0554ac36479cb217f55a6fcf (patch)
treed3bcdff7245794dfbe8838fdbfc8eb944819f2d3 /api-ref
parentf2d088b04e6e6896f0df04f03e92b32a539b6917 (diff)
downloadnova-4018d6fb71a4e5bb0554ac36479cb217f55a6fcf.tar.gz
Non-Admin user can filter their instances by more filters
Microversion bump to allow non-admin user to use more filters key when listing instances. In order to stay coherent, all existing instance filters who are related to a field readable by default to non admin users when showing instance details, should be allowed by default without policy modification. Implements: blueprint non-admin-filter-instance-by-az Change-Id: Ia66d3a1ceb74ed521cf44922929b2a502f3ee935
Diffstat (limited to 'api-ref')
-rw-r--r--api-ref/source/parameters.yaml55
-rw-r--r--api-ref/source/servers.inc12
2 files changed, 44 insertions, 23 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index bc828c85f0..fc579791c7 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -417,8 +417,9 @@ availability_zone_query_server:
description: |
Filter the server list result by server availability zone.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -579,8 +580,9 @@ config_drive_query_server:
description: |
Filter the server list result by the config drive setting of the server.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -597,8 +599,9 @@ created_at_query_server:
For example, ``2015-08-27T09:49:58-05:00``.
If you omit the time zone, the UTC time zone is assumed.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -888,8 +891,9 @@ key_name_query_server:
description: |
Filter the server list result by keypair name.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -942,8 +946,9 @@ launched_at_query_server:
For example, ``2015-08-27T09:49:58-05:00``.
If you omit the time zone, the UTC time zone is assumed.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -1121,15 +1126,17 @@ power_state_query_server:
6: CRASHED
7: SUSPENDED
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
progress_query_server:
description: |
Filter the server list result by the progress of the server.
The value could be from 0 to 100 as integer.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: integer
@@ -1371,8 +1378,9 @@ task_state_query_server:
description: |
Filter the server list result by task state.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
tenant_id_query:
description: |
Specify the project ID (tenant ID) to show the rate and absolute limits.
@@ -1392,8 +1400,9 @@ terminated_at_query_server:
For example, ``2015-08-27T09:49:58-05:00``.
If you omit the time zone, the UTC time zone is assumed.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -1439,8 +1448,9 @@ user_id_query_server:
description: |
Filter the list of servers by the given user ID.
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
@@ -1469,8 +1479,9 @@ vm_state_query_server:
- ``STOPPED``
- ``SUSPENDED``
- This parameter is only valid when specified by administrators.
- If non-admin users specify this parameter, it is ignored.
+ This parameter is restricted to administrators until microversion 2.82.
+ If non-admin users specify this parameter before microversion 2.83, it
+ is ignored.
in: query
required: false
type: string
diff --git a/api-ref/source/servers.inc b/api-ref/source/servers.inc
index 6334a96fef..c6e6560b32 100644
--- a/api-ref/source/servers.inc
+++ b/api-ref/source/servers.inc
@@ -173,7 +173,17 @@ whitelist will be silently ignored.
- ``tags-any`` (New in version 2.26)
- ``changes-before`` (New in version 2.66)
- ``locked`` (New in version 2.73)
-
+ - ``availability_zone`` (New in version 2.83)
+ - ``config_drive`` (New in version 2.83)
+ - ``key_name`` (New in version 2.83)
+ - ``created_at`` (New in version 2.83)
+ - ``launched_at`` (New in version 2.83)
+ - ``terminated_at`` (New in version 2.83)
+ - ``power_state`` (New in version 2.83)
+ - ``task_state`` (New in version 2.83)
+ - ``vm_state`` (New in version 2.83)
+ - ``progress`` (New in version 2.83)
+ - ``user_id`` (New in version 2.83)
- For admin user, whitelist includes all filter keys mentioned in
:ref:`list-server-request` Section.