Listing objects in a container
This section describes how to list objects that are present in a container.
Using the Swift client CLI
The following command shows you how to list objects using the Swift client CLI (in this example, we are listing the objects in the cities
container):
Execute the following request:
swift --os-auth-token=token --os-storage-url= http://storage.vedams.com/v1/AUTH_8e43ee201cbc4b70bd8bb2f8ae10f025 list cities
Here is the response to the request:
London.txt Mumbai.txt NewYork.txt
Using cURL
The following command shows you how to list objects using cURL. In this example, we list the objects in the cities
container. Execute this request:
curl -X GET -i http://storage.vedams.com/v1/AUTH_8e43ee201cbc4b70bd8bb2f8ae10f025/ci ties ...
Get OpenStack Object Storage (Swift) Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.