mc ilm ls
Lists the object lifecycle rules.
Syntax
Run mc ilm list to list all object lifecycle rules.
mc ilm ls [FLAGS] TARGET
FLAGS:
--expiry display only expiration fields
--json enable JSON lines formatted output
--debug enable debug output
--insecure disable SSL certificate verification
--help, -h show help
Parameters
| Parameter | Description |
|---|---|
--expiry |
Use the option to display expiration fields only. |
--json |
Use the option to display output in JSON format. |
--debug |
Use the option to enable debug mode for output. |
--insecure |
Use the option to disable SSL certificate verification while running the command. |
--help |
Use this option to display the command help. |
Example
DESCRIPTION:
List lifecycle configuration rules set on a bucket.
EXAMPLES:
-
List the lifecycle management rules (all fields) for mybucket on alias 'myminio'.
mc ilm ls myminio/mybucket -
List the lifecycle management rules (expiration date/days fields) for mybucket on alias 'myminio'.
mc ilm ls --expiry myminio/mybucket -
List the lifecycle management rules in JSON format for mybucket on alias 'myminio'.
mc ilm ls --json myminio/mybucket