Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

swift: search objects in container by name

Is there any way to filter objects returned when listing items in a swift container? As far as I can tell, the following will simply list all items in a container:

http GET https://swift.example.com/v1/AUTH_ID/myfiles?format=json

If there are potentially thousands of objects inside that container, it would be really useful to be able to filter by say a substring of their name - e.g.:

http GET https://swift.example.com/v1/AUTH_ID/myfiles?format=json&name-filter=gif # return gif files

Even more useful would be to be able to search objects by arbitrarily set meta data. But I can't find anything in the docs1 suggesting you can do either of these things.

References

1. http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_showContainerDetails__v1__account___container__storage_container_services.html
click to hide/show revision 2
retagged

swift: search objects in container by name

Is there any way to filter objects returned when listing items in a swift container? As far as I can tell, the following will simply list all items in a container:

http GET https://swift.example.com/v1/AUTH_ID/myfiles?format=json

If there are potentially thousands of objects inside that container, it would be really useful to be able to filter by say a substring of their name - e.g.:

http GET https://swift.example.com/v1/AUTH_ID/myfiles?format=json&name-filter=gif # return gif files

Even more useful would be to be able to search objects by arbitrarily set meta data. But I can't find anything in the docs1 suggesting you can do either of these things.

References

1. http://docs.openstack.org/api/openstack-object-storage/1.0/content/GET_showContainerDetails__v1__account___container__storage_container_services.html