Description
任意のコンテナにあるオブジェクトをWeb公開したい場合に使用します。 ACLsにてRead権限をすべて許可する設定となります。
※StaticWeb機能とは異なります。
Request URL
ObjectStorage API v1 POST /v1/ze_{account}/{container} |
Request Json
This operation does not accept a request body. |
Request Paramters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | Userトークン | header | トークンID |
account | テナントID | URI | テナントID |
container | コンテナ名 | URI | コンテナ名 |
X-Container-Read(Optional) | string | header | |
X-Remove-Container-Read(Optional) | string | header |
Response
Normal response codes
202 |
Example
Request
curl -i -X POST \ -H “Accept: application/json” \ -H “Content-Type: application/json” \ -H “X-Auth-Token: トークンID” \ -H “X-Container-Read: .r:*” \ https://object-storage.odc01.eva-clouds.com/v1/ze_テナントID/コンテナ名 |
Response
HTTP/1.1 202 Accepted Content-Length: 76 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx05fdba96a9624a89843d3-0057bcfae4 Date: Wed, 24 Aug 2016 01:39:52 GMT <html><h1>Accepted</h1><p>The request is accepted for processing.</p></html> |