Re: How to use Admin Ops API in Ceph Object Storage

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

 



On Mon, Jul 8, 2013 at 8:51 AM, Bright <hjiang@xxxxxxxxxxx> wrote:
> Hello Guys:
>
>      I am working with ceph nowadys and i want to setup a system which
>
>      includes a web page to create the ceph object storage user.
>
>      So, i tried to use Admin Ops API to fulfill my needs. However, if i use
>
>       GET /admin/usage?format=json HTTP/1.1
>
> Host: ceph-server
>
>      it will return 403 access denied.
>
>      Than, i tried to use
>
> GET /admin/usage?format=json HTTP/1.1
> Host: ceph-server
> Authorization: AWS {access-key}:{hash-of-header-and-secret}
>
>      I used the key of client.user to represent access-key

You need to create rgw user for that (radosgw-admin user create) and
use it. The user itself should have the 'usage' caps set (
--caps="usage=read, write").

>
>      and get the hash-of-header-and-secret accordingly.
>
> However, it still  returns 403 access denied.
>
>      Can anyone explain the method to deal with Admin Ops API, thanks!
>
>
> ------------------
> Hui Jiang
> East China University of Science and Technology
> 130 MeiLong Rd. Shanghai, China 200237
> Mobile +86 13774493120
> E-mail hjiang@xxxxxxxxxxx
>
>
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
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