GET Bucket lifecycle

Last updated: 2019-10-24 18:57:04



This API (GET Bucket lifecycle) is used to query the lifecycle configuration of a bucket. If the bucket does not have a lifecycle rule configured, NoSuchLifecycleConfiguration will be returned.


Sample Request

GET /?lifecycle HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>
Date: GMT Date
Authorization: Auth String

Authorization: Auth String (see Request Signature for more information).

Request Headers

Common Headers

The implementation of this request operation uses a common request header. For more information on common request headers, see Common Request Headers.

Special Headers

This request operation has no special request headers.

Request Body

The request body of this request is empty.


Response Headers

Common Response Headers

This response contains a common response header. For more information on common response headers, see Common Response Headers.

Special Response Headers

This response has no special response headers.

Response Body

The content and meaning of each element in the response body are the same as those in the request body for PUT Bucket lifecycle. For more information, see the Request Body Node Descriptions section in PUT Bucket lifecycle.

Error Codes

There are no special error messages for this request operation. For common error messages, see Error Codes.



GET /?lifecycle HTTP/1.1
Date: Wed, 16 Aug 2017 12:23:54 GMT


HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 312
Date: Wed, 16 Aug 2017 12:23:54 GMT
Server: tencent-cos
x-cos-request-id: NTk5NDM5NWFfMjQ4OGY3Xzc3NGRfMjA=