GetBucketLifecycleConfiguration

Returns the lifecycle configuration information set on the bucket.

You must have Full ACL to be able to call this action.

The following operations are related to GetBucketEncryption:

Request Syntax

1GET /?lifecycle HTTP/1.1
2Host: <BUCKET>.s3.tebi.io

The request uses the following URI parameters:

  • <BUCKET>: Name of the bucket from which the server-side encryption configuration is retrieved. Required.

The request does not have a request body.

Response Syntax

 1HTTP/1.1 200
 2Content-Length: ContentLength
 3Content-Type: application/xml
 4
 5<?xml version="1.0" encoding="UTF-8"?>
 6<LifecycleConfiguration>
 7    <Rule>
 8        <Prefix>string</Prefix>
 9        <Status>string</Status>
10        <AbortIncompleteMultipartUpload>
11            <DaysAfterInitiation>integer</DaysAfterInitiation>
12        </AbortIncompleteMultipartUpload>
13        <Expiration>
14            <Days>integer</Days>
15        </Expiration>
16        <Filter>
17            <Prefix>string</Prefix>
18        </Filter>
19        <ID>string</ID>
20    </Rule>
21    ...
22</LifecycleConfiguration>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service:

  • LifecycleConfiguration: Root level tag for the LifecycleConfiguration parameters.

  • Rule: Container for a lifecycle rule.

See Also

Refer here for more information.