PUT /?versioning HTTP 1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT dateAuthorization: Auth String
<VersioningConfiguration><Status></Status></VersioningConfiguration>
节点名称(关键字) | 父节点 | 描述 | 类型 |
VersioningConfiguration | 无 | 说明版本控制的具体信息 | Container |
Status | VersioningConfiguration | 说明版本是否开启,枚举值:Suspended、Enabled | Enum |
PUT /?versioning HTTP/1.1Host: examplebucket-1250000000.cos.ap-chengdu.myqcloud.comConnection: keep-aliveAccept-Encoding: gzip, deflateAccept: */*User-Agent: python-requests/2.12.4Content-Type: application/xmlAuthorization: q-sign-algorithm=sha1&q-ak=AKID15IsskiBQKTZbAo6WhgcBqVls9Sm****&q-sign-time=1480932292;1981012292&q-key-time=1480932292;1981012292&q-url-param-list=versioning&q-header-list=host&q-signature=47ec2b80c73788ecd394d3b9ad90e120a32f****Content-Length: 83<VersioningConfiguration><Status>Enabled</Status></VersioningConfiguration>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Connection: keep-aliveDate: Wed, 23 Aug 2017 08:14:53 GMTServer: tencent-cosx-cos-request-id: NTk5ZDM5N2RfMjNiMjM1MGFfMmRiX2Y0****
本页内容是否解决了您的问题?