Creates or replaces the lifecycle configuration for the bucket.
Host Style: http://bucketname.ns1.emc.com/?lifecycle
Path Style: http://ns1.emc.com/bucketname?lifecycle
Content-MD5 | required | This 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 | optional | The 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 | required | Information 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
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)
All parameters are required unless otherwise stated.
Field | Description | Type | Notes |
LifecycleConfiguration | |||
Rule |
0-* Elements |
||
ID | The rule's unique identifier | String |
Valid Values:
|
Filter | |||
Prefix | Objects having the key prefix, to which the rule should apply | String | |
Tag | |||
Key | String | ||
Value | String | ||
And | |||
Prefix | Objects having the key prefix, to which the rule should apply | String | |
Tag |
0-* Elements |
||
Key | String | ||
Value | String | ||
Prefix | Objects having the key prefix, to which the rule should apply | String | |
Status | String | ||
Expiration | |||
Days | Indicates the number of days after the creation of the object when this rule should take effect | String |
Valid Values:
|
Date | The date when the rule must be applied | String |
Valid Values:
|
ExpiredObjectDeleteMarker | Remove delete marker for expired objects | String |
Valid Values:
|
AbortIncompleteMultipartUpload | |||
DaysAfterInitiation | Indicates the number of days after the initialization of the uploads when abort uploads operation should take effect | String |
Valid Values:
|
NoncurrentVersionExpiration | |||
NoncurrentDays | String |
Valid Values:
|
x-amz-request-id | optional | Request id. |
x-amz-id-2 | optional | Bucket identifier. |
Response indicating Success or Failure to set bucket lifecycle.