Description
Retention configuration of bucket and objects inside it.
Syntax
object_container --bkt-retention --name <container name>
--bkt-name <bucket name>
--mode <compliance|governance|none>
[--object-name <anything>]
[--object-prefix <anything>]
[--valid-days <1 to 36500 days>]
[--valid-years <1 to 100 years>]
Where
--name Name of the container
--bkt-name Name of the bucket
--mode <compliance|governance|none>
Result
Object retention successfully set for `ObjectContainer1/bucket3/file1`.
Description
Show Locking and Retention configauration of a bucket and objects inside it.
Syntax
object_container --bkt-show --name <container name>
--bkt-name <bucket name>
[--object-name <anything>]
[--object-prefix <anything>]
Where
--name Name of the container
--bkt-name Name of the bucket
Result
Object Locking : Enabled
Object Retention Mode : COMPLIANCE
Object Retention Duration : 10DAYS
Object Versioning : Enabled
Description
List all the available policies.
Syntax
object_container --policy-list --name <container name>
Where
--name Name of the container
Result
List of available policies on object container`ObjectContainer1` are:
writeonly
readonly
readwrite
Description
Set a policy to the user.
Syntax
object_container --policy-set --name <container name>
--policy-name <Policy name>
--user-name <user name>
Where
--name Name of the container
--policy-name Name of the policy
--user-name Name of the user
Result
Successfully set policy `readwrite` to user `backup_user` on object container `ObjectContainer1`