Re: how to use admin api to trim_usage.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Sep 21, 2013 at 7:08 PM, 鹏 <wkp4666@xxxxxxx> wrote:
>  hi:
>     I follow the docment
> http://ceph.com/docs/master/radosgw/adminops/#trim-usage   send
>
> DELETE /{admin}/usage?format=json HTTP/1.1
> but the rwsquest is 400 {"Code":"InvalidArgument"}
>
> the log is
>
>
> compare=0
> DELETE   /admin/usage:trim_usage:reading permissions
> DELETE  /admin/usage:trim_usage:reading the cors attr
> Going to read Cors from attrs
> DELETE /admin/usage:trim_usage:executing
> DELTET /admin/usage:trim_usage:http status=400
> ============= req done req=0x16e35e0 http_status=400 ===========
>
> the user caps is
>     caps :[
>          {"type":"usage","perm":"*"}
>          {"type":"users","perm":"*"}
> ]
>
> why it ret urn 400, can you help me to poin that what mistake i make !!!!!

Usage requires the following params:

 - uid
 - start
 - end

uid is the user id for which we want to trim the usage.
start, end are date + optional time param, e.g., 2013-09-21 22:00:00

If uid is not provided, it means that the request is meant to trim
*all* users' data. This requires adding the 'remove-all' param (to
avoid accidental removal of all data).

> think you !!!!!!!!!1
>

You're welcome


Yehuda
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com





[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux