MENU
web publishing - ObjectStorage API v1
Description
任意のコンテナにあるオブジェクトをWeb公開したい場合に、使用します。
ACLsにてRead権限を全て許可する設定となります。
※Staticweb機能とは異なります。
Request URL
Swift API v1.0 POST /v1/nc_{account}/{container}
Request Parameters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | |
account | tenant ID | URI | |
container | コンテナ名 | URI | |
X-Container-Read (Optional) | string | header | |
X-Remove-Container-Read (Optional) | string | header |
Request Json
This operation does not accept a request body.
Normal response code
204
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X POST \ -H "Accept: application/json" \ -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \ -H "X-Container-Read: .r:*" \ https://object-storage.tyo1.conoha.io/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container
- RES
HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx7a796f4ba4524c199c82b-00554c37ea Date: Fri, 08 May 2015 04:13:30 GMT