Temporary URL to access objects in Object Storage in IBM Bluemix using Python Swift Client
Riya Mary Roy 310002EG86 Comments (2) Visits (11130)
The Object Storage service is based on OpenStack Swift and can be accessed by using any compatible client application (Clo
This blog describes how to create a temporary URL to access files/objects in the Object Storage using Python Swift Client without requiring further authentication.
Install Python 2.7 or later(currently it doesn’t support Python 3.0)
Install setuptools on Windows by following the documentation provided on the setuptools website (htt
The Swift client takes the authentication information from the following environment variables:
Set the authentication information as follows.
(You can find the <use
(Locate the Account field and note the full string behind Account: including AUTH_)
Ex: swift post -m "Tem
This key can be anything (a long, random, and hard to guess string is preferred)
Run the Swift stat command to verify that the Temp-URL-Key is set successfully: swift stat
Ex: swift tempurl GET 360 /v1/
GET allows download. PUT allows upload.
Time in seconds that the temporary URL will be available.
The full path of the object expressed as /v1/
The key that you set in the previous step.
Eg of URL:
If it's DALLAS regi
& if it's London regi