Define timestamp as extension attribute
According to the comments on the previous patch[1], define timestamp as extension attribute here. [1] https://review.openstack.org/#/c/196959/ Change-Id: I36cf062175f94ef0314fdf8d189578e1045d8f09
This commit is contained in:
parent
4af775be4b
commit
0903b1672a
@ -62,10 +62,9 @@ updating resource, so only Read operation in CRUD is provided.
|
||||
REST API Impact
|
||||
---------------
|
||||
|
||||
Created_at and updated_at will be returned when users issue resource retrieving
|
||||
requests.
|
||||
|
||||
Resources list API will accept new query string parameter change_since. Users
|
||||
Created_at and updated_at will be exposed to users via extension API. If plugin
|
||||
supports, they are returned when users issue resource retrieving requests.
|
||||
Also, resources list API accepts new query string parameter change_since. Users
|
||||
can pass timestamp of ISO 8601 format to the list API uri to retrieve resources
|
||||
operated since a specific time.
|
||||
|
||||
@ -73,7 +72,7 @@ Take port as an example, the request uri looks like this:
|
||||
|
||||
.. code::
|
||||
|
||||
GET /v2.0/ports?change_since=2015-07-31T00:00:00
|
||||
GET /v2.0/ports?changed_since=2015-07-31T00:00:00
|
||||
|
||||
and response:
|
||||
|
||||
@ -124,6 +123,12 @@ python client supports dynamic assigning search fields so it is easy for it to
|
||||
support this new filter. Also Neutron python client needs to add the two new
|
||||
fields when displaying resource information.
|
||||
|
||||
Take port as an example, the command looks like:
|
||||
|
||||
::
|
||||
|
||||
neutron port-list --changed-since 2015-07-31T00:00:00
|
||||
|
||||
Performance Impact
|
||||
------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user