diff options
author | zhangbailin <zhangbailin@inspur.com> | 2018-10-03 23:03:58 -0400 |
---|---|---|
committer | Matt Riedemann <mriedem.os@gmail.com> | 2018-10-24 11:11:49 -0400 |
commit | a3a0068929136d3bf6e25338889fd3090938eac6 (patch) | |
tree | 1f408ff764a17ba2010860e0105f72bc9bd458e6 /api-ref | |
parent | 6bf11e1dc14afad78b11d980c2544a3dc41579ff (diff) | |
download | nova-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')
-rw-r--r-- | api-ref/source/parameters.yaml | 6 |
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 |