summaryrefslogtreecommitdiff
path: root/api-ref/source
diff options
context:
space:
mode:
authorzhangbailin <zhangbailin@inspur.com>2018-10-03 23:03:58 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2018-10-24 11:11:49 -0400
commita3a0068929136d3bf6e25338889fd3090938eac6 (patch)
tree1f408ff764a17ba2010860e0105f72bc9bd458e6 /api-ref/source
parent6bf11e1dc14afad78b11d980c2544a3dc41579ff (diff)
downloadnova-a3a0068929136d3bf6e25338889fd3090938eac6.tar.gz
Add restrictions on updated_at when getting migrations
If ``changes-before`` is less than ``changes-since`` in requested, there will get empty data when querying in db, so add the limit of these parameters. If ``changes-before`` < ``changes-since``, will be returned 400. Closes-Bug: #1796008 Change-Id: I2a39ac5a9fe969d383099b4e766c46ad05d9f67c
Diffstat (limited to 'api-ref/source')
-rw-r--r--api-ref/source/parameters.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml
index 226cc742a7..4e084bafa8 100644
--- a/api-ref/source/parameters.yaml
+++ b/api-ref/source/parameters.yaml
@@ -485,6 +485,9 @@ changes_before_migration:
The ``±hh:mm`` value, if included, returns the time zone as an offset from UTC.
For example, ``2015-08-27T09:49:58-05:00``.
If you omit the time zone, the UTC time zone is assumed.
+ When both ``changes-since`` and ``changes-before`` are specified,
+ the value of the ``changes-before`` must be later than or equal to
+ the value of the ``changes-since`` otherwise API will return 400.
in: query
required: false
type: string
@@ -538,6 +541,9 @@ changes_since_migration:
The ``±hh:mm`` value, if included, returns the time zone as an offset from UTC.
For example, ``2015-08-27T09:49:58-05:00``.
If you omit the time zone, the UTC time zone is assumed.
+ When both ``changes-since`` and ``changes-before`` are specified,
+ the value of the ``changes-since`` must be earlier than or equal to
+ the value of the ``changes-before`` otherwise API will return 400.
in: query
required: false
type: string