diff options
| author | Takashi NATSUME <natsume.takashi@lab.ntt.co.jp> | 2019-07-12 12:29:49 +0900 |
|---|---|---|
| committer | Takashi NATSUME <natsume.takashi@lab.ntt.co.jp> | 2019-08-04 23:59:51 +0000 |
| commit | ae7ebdf45eb6c9c4406d851ab8ee6f2e47d5f275 (patch) | |
| tree | cbe229ea2760fa0d4eedd40fc26cc72e261fb4c2 /api-ref/source | |
| parent | 600ecf3d9a5116d040cd18023ff270b91b06247d (diff) | |
| download | nova-ae7ebdf45eb6c9c4406d851ab8ee6f2e47d5f275.tar.gz | |
Retrun 400 if invalid query parameters are specified
The following APIs return 500 error currently
if an invalid sort key or an invalid sort direction
query parameter is specified.
- GET /flavors
- GET /flavors/detail
Make the APIs return 400 error in that case.
Change-Id: I1d6d2c1f734b28dbea5c67cf88717149dd4911d7
Closes-Bug: #1835925
Diffstat (limited to 'api-ref/source')
| -rw-r--r-- | api-ref/source/parameters.yaml | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 41cd1a672c..df3bd8e59f 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -1243,7 +1243,23 @@ sort_key_flavor: Sorts by a flavor attribute. Default attribute is ``flavorid``. You can specify multiple pairs of sort key and sort direction query parameters. If you omit the sort direction in a pair, the API uses the natural sorting direction of the flavor - ``sort_key`` attribute. + ``sort_key`` attribute. The sort keys are limited to: + + - ``created_at`` + - ``description`` + - ``disabled`` + - ``ephemeral_gb`` + - ``flavorid`` + - ``id`` + - ``is_public`` + - ``memory_mb`` + - ``name`` + - ``root_gb`` + - ``rxtx_factor`` + - ``swap`` + - ``updated_at`` + - ``vcpu_weight`` + - ``vcpus`` in: query required: false type: string |
