mc admin bucket quota

Manage bucket quota.

Syntax

CLI
mc admin bucket quota TARGET [--fifo QUOTA | --hard QUOTA | --clear] 

QUOTA
  quota accepts human-readable case-insensitive number
  suffixes such as "k", "m", "g", "t" referring to the metrics unit KB,
  MB, GB and TB respectively. Adding an "i" to these prefixes, uses the IEC
  units, so that "gi" refers to "gigibyte" or "GiB". A "b" at the end is 
  also accepted. Without suffixes the unit is bytes.

FLAGS:
  --fifo value  set fifo quota, allowing automatic deletion of older content
  --hard value  set a hard quota, disallowing writes after quota is reached                          
  --clear       clears bucket quota configured for bucket;
  --json        enable JSON lines formatted output
  --debug       enable debug output
  --insecure    disable SSL certificate verification
  --help, -h    show help

Parameters

Parameter Description
fifo This option from the original minio command is not supported in Data Fabric.
hard On setting this quota, the bucket can hold objects upto the specified hard quota only. The older objects are retained when you set the hard quota.
NOTE
If you attempt to upload objects to the bucket such that the total size of all objects present in the bucket exceeds the hard quota, an error is displayed, and the object(s) due to which the hard quota is exceeded, is not stored on the bucket. In this case, you can choose to increase the hard quota, and then attempt to reload the object(s) to the bucket.
clear Use this option to clear the bucket quota and reset it to 0.
json Enable JSON formatted output.
debug Enable output for debugging.
insecure Disable SSL verification.
help Show this help.

Examples

IMPORTANT

If bucket quota is more than account quota/volume quota, the account quota/volume quota get precedence.

For example, if you have created a bucket and set quota on backend volume quota as 5GB and the bucket quota to 10GB, the volume quota gets enforced first and you are unable to upload more than 5GB even though bucket quota is 10GB. Similarly, if you create a bucket inside an account and have set account quota as 5GB and bucket quota as 10GB, theaccount quota is enforced. You are unable to upload more than 5GB even though bucket quota is 10GB.
  1. Display bucket quota configured for mybucket on the object store 'myminio':
    CLI
    mc admin bucket quota myminio/mybucket
  2. Set hard quota of 1 GB for the bucket,'mybucket' on the object store 'myminio':
    CLI
    mc admin bucket quota myminio/mybucket --hard 1GB
  3. Clear bucket quota configured for the bucket 'mybucket' on the object store 'myminio':
    CLI
    mc admin bucket quota myminio/mybucket --clear