OpenStack Object Storage (Swift)

Reverse Object Listing

Registered by Kevin McDonald on 2012-11-12

Goal: Enable the ability to paginate backwards through a container listing. It's possible using the current API to paginate going forward using limit and marker. It's not possible to go the other way using end_marker and limit because the limit applies to the beginning of the listing. Another use-case for a reverse listing is getting a listing of the latest objects in a container with date-sorted log files. I propose we introduce a 'reverse' parameter to the container GET call that will query the container sorted in descending order.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
Kevin McDonald
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Solution: Add a reverse parameter to the container call: v1/{account}/{container}

reverse (Optional) - Flag that reverses the order of the object listing, either true or false.

Gerrit topic: https://review.openstack.org/#q,topic:bp/reverse-object-listing,n,z

Addressed by: https://review.openstack.org/15985
    Initial Implementation of reverse-object-listing

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.