S3 Bucket Lifecycle Operation:Set Bucket Lifecycle

Search (SHIFT+S)

Set Bucket Lifecycle

PUT /?lifecycle

Creates or replaces the lifecycle configuration for the bucket.

URL Format

Host Style: http://bucketname.ns1.emc.com/?lifecycle
Path Style: http://ns1.emc.com/bucketname?lifecycle

Request Headers

Content-MD5 requiredThis is the 128-bit MD5 digest of data which is base64 encoded. This is used to verify that the request was not corrupted during transit.
x-amz-date optionalThe timestamp of the request added by the requester. Example: Tue, 03 Sept 2013 12:00:00 GMT. If the Authorization header is specified, either the x-amz-date or the Date header must also be specified If both the headers are specified, the value of x-amz-date header is chosen.
Authorization requiredInformation needed to authenticate requests.


The following conditions must be met in order to call this operation.

  • Only the owner of the bucket or a user having permission can create or replace the lifecycle configuration for the bucket

  • Bucket must not be version enabled or versioning must be suspended

  • BaseUrl used in a host-style request URL should be pre-configured using the ECS Management API or the ECS Portal (for example, emc.com in the URL: bucketname.ns1.emc.com).

  • Namespace corresponding to this bucket should exist (for example, ns1)

Request Payload

No Request Payload

Response Headers

x-amz-request-id optionalRequest id.
x-amz-id-2 optionalBucket identifier.

Response Body

Response indicating Success or Failure to set bucket lifecycle.