api: Add ability to filter flavors by name

Change-Id: I0d51d29339d1380b93ccb1501e33891082f930ec
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-01-30 11:06:53 +00:00
parent 889e3d83f6
commit e73a0bc84b
12 changed files with 142 additions and 13 deletions
+1
View File
@@ -33,6 +33,7 @@ Request
- minDisk: minDisk
- minRam: minRam
- is_public: flavor_is_public_query
- name: flavor_name_query
Response
--------
+12
View File
@@ -717,6 +717,18 @@ flavor_is_public_query:
``f``, ``false``, ``off``, ``n`` and ``no`` are treated as ``False``
(they are case-insensitive). If the value is ``None`` (case-insensitive)
both public and private flavors will be listed in a single request.
flavor_name_query:
description: |
Filters the response by a flavor name, as a string. You can use regular expressions
in the query. For example, the ``?name=bob`` regular expression returns both bob
and bobb. If you must match on only bob, you can use a regular expression that
matches the syntax of the underlying database server that is implemented for Compute,
such as MySQL or PostgreSQL.
format: regexp
in: query
required: false
type: string
min_version: 2.102
flavor_query:
description: |
Filters the response by a flavor, as a UUID. A flavor is a combination of memory,