NoSuchLifecycleConfiguration
will be returned.GET /?lifecycle HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).PUT Bucket lifecycle
. For more information, please see PUT Bucket lifecycle.GET /?lifecycle HTTP/1.1Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.comDate: Wed, 16 Aug 2017 12:23:54 GMTAuthorization:q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1502857357;1502937357&q-key-time=1502857357;1502937357&q-header-list=host&q-url-param-list=lifecycle&q-signature=da155cda3461bee7422ee95367ac8013ef84****
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 312Date: Wed, 16 Aug 2017 12:23:54 GMTServer: tencent-cosx-cos-request-id: NTk5NDM5NWFfMjQ4OGY3Xzc3NGRf****<LifecycleConfiguration><Rule><ID>id1</ID><Filter><Prefix>documents/</Prefix></Filter><Status>Enabled</Status><Transition><Days>100</Days><StorageClass>STANDARD_IA</StorageClass></Transition></Rule><Rule><ID>id2</ID><Filter><Prefix>logs/</Prefix></Filter><Status>Enabled</Status><Expiration><Days>10</Days></Expiration></Rule></LifecycleConfiguration>
문제 해결에 도움이 되었나요?