Ask Your Question

jcolp's profile - activity

2012-08-09 14:50:44 -0500 answered a question Download file with API

Oh, and if these don't cover what you meant please explain more.

2012-08-09 14:49:24 -0500 answered a question Unable to locate config for object-expirer

The swift-object-expirer daemon is responsible for deleting objects that have been set to be deleted after a specific period of time. If you aren't using this functionality in your environment it won't be needed.

You can read more about this feature at http://docs.openstack.org/developer/swift/overview_expiring_objects.html (http://docs.openstack.org/developer/s...) where a quick sample configuration file is also available.

2012-08-09 14:37:30 -0500 answered a question Download file with API

You can download a file using curl with the following:

curl -o <filename> -H 'X-Auth-Token: <authentication token="">' <storage url="">/<container>/<filename>

For example:

curl -o setup.py -H 'X-Auth-Token: AUTH_tk6253106a51034423b2e3f0ca4b179817' http://127.0.0.1:8080/v1/AUTH_test/bob/setup.py (http://127.0.0.1:8080/v1/AUTH_test/bo...)

This downloads the file 'setup.py' from the container 'bob'.

You can also use the swift application provided by python-swiftclient:

swift -A <url for="" authentication=""> -U <username> -K <key> download <container> <filename>

For example:

swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing download bob setup.py