Description
Use when operating administration of the version of the object.
When you upload the file (which has the same name),
the old object will automatically be saved to the container which will be versioning, with timestamp.
When you delete the latest oblect, the old file wll be regeranerated to the container which will be versioning.
Request URL
Swift API v1.0 PUT /v1/zc_{account}/{container}
Request Parameters
Parameter | Value | Style | Description |
---|---|---|---|
X-Auth-Token | User Token | header | |
account | tenant ID | URI | |
container | Container Name | URI | |
X-Versions-Location (Optional) | string | header | |
X-Remove-Versions-Location (Optional) | string | header |
Request Json
This operation does not accept a request body.
Normal response code
202
Example
curl -i -X PUT \ -H "Accept: application/json" \ -H "X-Auth-Token: 2c6f2de2126a4102b38368c32e7043db" \ -H "X-Versions-Location: container2" \ https://object-storage.tyo1.cloud.z.com/v1/nc_cc54f7476b8e444bad238a943a94ccdf/container
HTTP/1.1 202 Accepted Content-Length: 76 Content-Type: text/html; charset=UTF-8 X-Trans-Id: tx45d792522d20468cbceb9-00554c1851 Date: Fri, 08 May 2015 01:58:42 GMT <html><h1>Accepted</h1><p>The request is accepted for processing.</p></html>