Public URLs For Objects In Bluemix Object Storage Service

后端 未结 3 1302
陌清茗
陌清茗 2020-12-06 08:08

I would like to upload a number of photos to the Bluemix Object Storage service and then display them in a web app. Right now a GET request to the photo in the object stora

3条回答
  •  攒了一身酷
    2020-12-06 08:45

    The correct way to do this is to modify the container ACL. You cannot do this via the Bluemix UI currently but you can using the Swift REST API. For example, to change the container ACL so anyone can read objects in the container you can issue the following PUT request.

    curl -X PUT "https://dal.objectstorage.open.softlayer.com/v1/AUTH_123/mycontainer" \
        -H "X-Auth-Token: token123" \
        -H "X-Container-Read: .r:*"
    

提交回复
热议问题