Skip to content

exo storage bucket lifecycle set

Description

Set a lifecycle configuration for a bucket.

Example of a valid lifecycle configuration:

{
    "Rules": [
        {
            "Status": "Enabled",
            "Expiration": { "Days": 30 },
            "Filter": { "Prefix": "" },
            "ID": "expire-after-30-days"
        }
    ]
}
exo storage bucket lifecycle set sos://BUCKET path/to/lifecycle.json [flags]

Options

OptionDescription
--help, -hhelp for set
--zone, -zzone

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--timeoutPer-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT]
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • lifecycle - Object Storage Bucket lifecycle management
Last updated on