The client interface in Swarm consists of:
policy.lifecycle
setting at the cluster-levelPolicy-Lifecycle
header on a domainPolicy-Lifecycle
headers on a bucket
The Policy-Lifecycle-Evaluated
headers return the evaluated policies on domains, buckets, and objects using GET/HEAD requests. For named objects, the verbose query argument is required to view those headers. The gateway supports S3 lifecycle policies as described in the S3 documentation.
Swarm UI supports the above cluster setting just like any existing cluster setting. On the Content Portal, a customer can edit at the domain and bucket levels. Further, a customer can enable/disable lifecycle policies for buckets within the domain using a checkbox.
The default setting for a domain is to inherit lifecycle policies from the cluster.
The default cluster-level setting is disabled.
Time-based policies trigger the defined rule(s) when the defined duration completes.