x-cos-storage-tier
获取对象所处的存储层。PUT /?intelligenttiering HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comConnection: keep-aliveAuthorization: authorization stringContent-Type: text/plainContent-Length: Int
<IntelligentTieringConfiguration xmlns="cos xmlns/"><Status>Enabled</Status><Transition><Days>30|60|90</Days><RequestFrequent>1</RequestFrequent></Transition></IntelligentTieringConfiguration>
名称 | 父节点 | 描述 | 类型 | 是否必选 |
IntelligentTieringConfiguration | 无 | 智能分层存储配置的具体信息 | Container | 是 |
Status | IntelligentTieringConfiguration | 说明智能分层存储配置是否开启,枚举值:Enabled | Enum | 是 |
Transition | IntelligentTieringConfiguration | 指定智能分层存储配置中有关数据转换的配置信息 | Container | 是 |
Days | IntelligentTieringConfiguration.Transition | 指定智能分层存储配置中标准层数据转换为低频层数据的天数限制,可选天数为30、60、90。默认值为30 | Int | 是 |
RequestFrequent | IntelligentTieringConfiguration.Transition | 指定配置中标准层数据转换为低频层数据的访问次数限制,默认值为1次,和天数搭配使用可以实现转换效果。例如设置该参数为1,访问天数为30,代表连续30天访问次数小于1次的对象会从标准层降到低频层 | Int | 是 |
PUT /?intelligenttiering 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<IntelligentTieringConfiguration xmlns="cos xmlns/"><Status>Enabled</Status><Transition><Days>30</Days><RequestFrequent>1</RequestFrequent></Transition></IntelligentTieringConfiguration>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Connection: keep-aliveDate: Sun, 23 Aug 2020 08:14:53 GMTServer: tencent-cosx-cos-request-id: NTk5ZDM5N2RfMjNiMjM1MGFfMmRiX2Y0****
本页内容是否解决了您的问题?