tigris buckets lifecycle edit | Tigris Object Storage Documentation
On this page
Edit an existing lifecycle rule by its id. Only specified fields are changed.
Alias:e
Usage
tigris buckets lifecycle edit <name> <id> [flags]
t3 b lc e <name> <id> [flags]
Run tigris buckets lifecycle list <name> to see existing rule ids.
Flags
| Name | Required | Default | Description |
|---|---|---|---|
--prefix, -p |
No | — | Replace the rule's key prefix |
--storage-class, -s |
No | — | Replace the rule's transition target |
--days, -d |
No | — | Replace the rule's transition days |
--date |
No | — | Replace the rule's transition date (ISO-8601) |
--expire-days |
No | — | Replace the rule's expiration days |
--expire-date |
No | — | Replace the rule's expiration date (ISO-8601) |
--enable |
No | — | Enable the rule |
--disable |
No | — | Disable the rule (does not remove it) |
Examples
# Change the transition window
tigris buckets lifecycle edit my-bucket abc123 --days 60
# Add or change the expiration window
tigris buckets lifecycle edit my-bucket abc123 --expire-days 90
# Re-enable a previously disabled rule
tigris buckets lifecycle edit my-bucket abc123 --enable