x-cos-storage-tier header returned by the Query Object Metadata API.PUT /?intelligent-tiering&id=default HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comConnection: keep-aliveAuthorization: authorization stringContent-Type: text/plainContent-Length: Int
Parameter | Description | Type | Required |
id | The name of the intelligent tiering rule name list task. The default rule is fixed as the infrequent access tier rule. | String | Yes |
<IntelligentTieringConfiguration><Id>default</Id><Status>Enabled</Status><Tiering><AccessTier>INFREQUENT</AccessTier><Days>30|60|90</Days><RequestFrequent>1</RequestFrequent></Tiering></IntelligentTieringConfiguration>
Name | Parent Node | Description | Type | Required |
IntelligentTieringConfiguration | None | Specific information about the INTELLIGENT_TIERING configuration. | Container | Yes |
Id | IntelligentTieringConfiguration | Specifies the name of the INTELLIGENT_TIERING configuration rule. The infrequent access tier rule is fixed as default. | String | Yes |
Status | IntelligentTieringConfiguration | Specifies whether the intelligent tiering rule is enabled. Valid values: Enabled, Disabled. When the id is default, only Enabled can be set. | Enum | Yes |
Tiering | IntelligentTieringConfiguration | Specifies the configuration information about data transition in the INTELLIGENT_TIERING configuration. | Container | Yes |
AccessTier | IntelligentTieringConfiguration.Tiering | When the id is default, it indicates the infrequent access tier. Enumeration value: INFREQUENT. | Enum | Yes |
Days | IntelligentTieringConfiguration.Tiering | Specifies the day limit for transitioning data from the standard tier to the infrequent access tier in the INTELLIGENT_TIERING configuration. The default value is 30 days. Options include 30, 60, and 90. | Int | Yes |
RequestFrequent | IntelligentTieringConfiguration.Tiering | Specifies the number of accesses limit for transitioning data from the standard tier to the infrequent access tier in the configuration. The default value is 1. When it is used together with the day limit, it can achieve the transition effect. For example, if you set this parameter to 1 and the access days to 30, it means that objects accessed fewer than 1 time in 30 consecutive days are transitioned from the standard tier to the infrequent access tier. | Int | Yes |
PUT /?intelligent-tiering&id=default 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=************************************&q-sign-time=1480932292;1981012292&q-key-time=1480932292;1981012292&q-url-param-list=versioning&q-header-list=host&q-signature=****************************************Content-Length: 83<IntelligentTieringConfiguration><Id>default</Id><Status>Enabled</Status><Tiering><AccessTier>INFREQUENT</AccessTier><Days>30</Days><RequestFrequent>1</RequestFrequent></Tiering></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****
PUT /?intelligent-tiering&id=Id HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comConnection: keep-aliveAuthorization: authorization stringContent-Type: text/plainContent-Length: Int
Parameter | Description | Type | Required |
id | The name of the intelligent tiering rule name list task. Set to a string other than default, indicating that the rule is for archive tier and deep archive tier conversion. | String | Yes |
<IntelligentTieringConfiguration><Id>rule1</Id><Status>Enabled</Status><Filter><And><Prefix>string</Prefix><Tag><Key>string</Key><Value>string</Value></Tag><Tag><Key>string</Key><Value>string</Value></Tag>...</And></Filter><Tiering><AccessTier>ARCHIVE_ACCESS</AccessTier><Days>100</Days></Tiering><Tiering><AccessTier>DEEP_ARCHIVE_ACCESS</AccessTier><Days>200</Days></Tiering></IntelligentTieringConfiguration>
Name | Parent Node | Description | Type | Required |
Id | IntelligentTieringConfiguration | The name of the intelligent tiering rule name list task. Set to a string other than default, indicating that the rule is for archive tier and deep archive tier conversion. | String | Yes |
Status | IntelligentTieringConfiguration | Specifies whether the intelligent tiering rule is enabled. Valid values: Enabled, Disabled. When the id is default, only Enabled is supported. | Enum | Yes |
Filter | IntelligentTieringConfiguration | Filters objects to be analyzed. When the id is not default, the archive and deep archive tier rules take effect on objects that match the prefix and Tag set in Filter. | Container | No |
And | IntelligentTieringConfiguration.Filter | Filter condition. If both a prefix and object Tag conditions are required, wrap them with And. | Container | No |
Prefix | IntelligentTieringConfiguration.Filter.And | Filters the object prefix. At most one prefix can be specified. | String | No |
Tag | IntelligentTieringConfiguration.Filter.And | When objects to be analyzed are filtered, object Tags (multiple Tags are supported) can be used as filter conditions. | Container | No |
Tiering | IntelligentTieringConfiguration | Specifies the configuration information about data transition in the INTELLIGENT_TIERING configuration. | Container | Yes |
AccessTier | IntelligentTieringConfiguration
.Tiering | When the id is not default, it specifies the archive or deep archive tier. Valid values: ARCHIVE_ACCESS, DEEP_ARCHIVE_ACCESS. | Enum | Yes |
Days | IntelligentTieringConfiguration
.Tiering | When the id is not default, it specifies the number of days after which data is transitioned to the archive or deep archive tier in the INTELLIGENT_TIERING configuration. The Archive tier (ARCHIVE_ACCESS) supports a configurable range from 91 to 730 days. The Deep Archive tier (DEEP_ARCHIVE_ACCESS) supports a configurable range from 180 to 730 days. Within the same rule, the number of days for the Deep Archive tier must be greater than that for the Archive tier. | Int | Yes |
PUT /?intelligent-tiering&id=rule1 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: Auth StringContent-Length: Content Length<IntelligentTieringConfiguration><Id>rule1</Id><Status>Enabled</Status><Tiering><AccessTier>ARCHIVE_ACCESS</AccessTier><Days>100</Days></Tiering><Tiering><AccessTier>DEEP_ARCHIVE_ACCESS</AccessTier><Days>200</Days></Tiering></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: NTk5ZDM5N2RfMjNiMjM1MGFfMmRi1111****
folder1/ to transition to the Archive tier after 91 consecutive days without access.PUT /?intelligent-tiering&id=rule2 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: Auth StringContent-Length: Content Length<IntelligentTieringConfiguration><Id>rule2</Id><Status>Enabled</Status><Filter><Prefix>folder1/</Prefix></Filter><Tiering><AccessTier>ARCHIVE_ACCESS</AccessTier><Days>91</Days></Tiering></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: NTk5ZDM5N2RfMjNiMjM1MGFfMmRi222****
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan