GET Bucket lifecycle

Last updated: 2021-07-27 16:00:43


    This API is used to query the lifecycle configuration of a bucket. If no lifecycle rule is configured for the bucket, NoSuchLifecycleConfiguration will be returned.

    You are advised to use API Explorer.
    API Explorer makes it easy to make online API calls, verify signatures, generate SDK code, search for APIs, etc. You can also use it to query the content of each request as well as its response.


    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 details.)

    Request headers

    This API only uses common request headers. For more information, please see Common Request Headers.

    Request body

    This request has no request body.


    Response headers

    This API returns only common response headers. For more information, please see Common Response Headers.

    Response body

    Elements in the response body are the same as those in the request body of PUT Bucket lifecycle. For more information, please see PUT Bucket lifecycle.

    Error codes

    This API returns common error responses and error codes. For more information, please 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: NTk5NDM5NWFfMjQ4OGY3Xzc3NGRf****