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`
Description
Unset a policy to the user.
Syntax
object_container --policy-unset --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 unset policy `readwrite` to user `backup_user` on object container `ObjectContainer1`.
|
NOTE: This command is valid for the Object containers created from QoreStor 7.4.0 onwards. |