Found 0 result in total
Content is empty
If you don't find the content you expect, please try another search term
Last updated:2021-09-14 16:18:08
This PUT operation uses the version
resource to set the multi version settings of user space.
If you use this interface, you need to be the owner of this space.
Users can open or close multiple versions through this interface:
Open status: all files uploaded to the storage space will be identified with a unique version ID.
null
.PUT /?versioning HTTP/1.1
Host: {BucketName}.{endpoint}
Date: {date}
Authorization: {SignatureValue}
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>string</Status>
</VersioningConfiguration>.
Note:
The interface does not use request parameters.
This interface only uses common request headers. For more information, please click Public request headers.
Name | Description |
---|---|
Status | The multi version state of the storage space. Type: String Valid value: Enabled Suspended |
This interface can use all common response headers. For more information, please click Public response headers.
The interface does not return the corresponding content.
The interface does not return any special errors.
Example of opening a multi version request
PUT /?versioning HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyuncs.com
Date: Fri, 26 Dec 2014 06:38:43 GMT
Authorization: authorization string
Content-Type: text/plain
Content-Length: 124
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>Enabled</Status>
</VersioningConfiguration>
Response example
HTTP/1.1 200 OK
Date: Fri, 26 Dec 2014 06:38:43 GMT
Server: Tengine
Example of closing a multi version request
PUT /?versioning HTTP/1.1
Host: ks3-example.ks3-cn-beijing.ksyuncs.com
Date: Fri, 26 Dec 2014 06:38:43 GMT
Authorization: authorization string
Content-Type: text/plain
Content-Length: 124
<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>Suspended</Status>
</VersioningConfiguration>
Example of a response to closing a log
HTTP/1.1 200 OK
Date: Fri, 26 Dec 2014 06:38:43 GMT
Server: Tengine
Pure Mode