S3 create or replace a bucket lifecycle
To create or replace a bucket lifecycle, use PUT and specify a destination
bucket and a lifecycle configuration. The Ceph Object Gateway only supports a subset of the S3
lifecycle functionality.
Syntax
PUT /_BUCKET_?lifecycle HTTP/1.1
Host: cname.domain.com
Authorization: AWS _ACCESS_KEY_:_HASH_OF_HEADER_AND_SECRET_
<LifecycleConfiguration>
<Rule>
<Expiration>
<Days>10</Days>
</Expiration>
</Rule>
...
<Rule>
</Rule>
</LifecycleConfiguration>
Request Headers
content-md5
- Description
-
A base64 encoded MD-5 hash of the message
- Valid Values
-
String No defaults or constraints.
- Required
-
No
Reference
-
For more information about Amazon S3 common request headers, see S3 common request headers.
-
For more information about Amazon S3 bucket lifecycles, see S3 bucket lifecycles.