Figured it out:
admin/bucket?quota works, but it does not seem to be documented.

On Mon, Aug 31, 2020 at 4:16 PM Youzhong Yang <youzh...@gmail.com> wrote:

> Hi all,
>
> I tried to set bucket quota using admin API as shown below:
>
> admin/user?quota&uid=bse&bucket=test&quota-type=bucket
>
> with payload in json format:
> {
>                 "enabled": true,
>                 "max_size": 1099511627776,
>                 "max_size_kb": 1073741824,
>                 "max_objects": -1
> }
>
> it returned success but the quota change did not happen, as confirmed by
> 'radosgw-admin bucket stats --bucket=test' command.
>
> Am I missing something obvious? Please kindly advise/suggest.
>
> By the way, I am using ceph mimic (v13.2.4). Setting quota by
> radosgw-admin quota set --bucket=${BUCK} --max-size=1T --quota-scope=bucket
> works, but I want to do it programmatically.
>
> Thanks in advance,
> -Youzhong
>
>
>
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to