Ask Your Question

http api for swift to upload objects

asked 2014-10-15 02:34:17 -0500

arun_vav gravatar image


I have the simialr issue as ( ) - but i'm able to upload/download files from /to container, using CLI. But i'm looking for HTTP access to container, which i'm n't getting. swift stat works fine.

my swift end point is: public/internal url : . . controller :

when i try to access http for this url, it gives "This server could not verify that you are authorized to access the document you requested."

root@block1:/# swift stat -v StorageURL: . . Auth Token: MII Account: AUTH_e4a3267186b84ba6b2b1233ee15b5a76 Containers: 3 Objects: 42 Bytes: 13183123 Accept-Ranges: bytes ...

Please help me, url tried = - no luck. - no luck

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-05 10:03:58 -0500

updated 2015-02-05 11:50:08 -0500

Post the container using command: swift post -r '.r:*' container Later try url =>

edit flag offensive delete link more


What you're doing here is adding an ACL which allows reading from the container without the auth token. Read more (here) and (here)

roadmr gravatar imageroadmr ( 2015-02-09 10:39:05 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-15 02:34:17 -0500

Seen: 497 times

Last updated: Feb 05 '15