Hi all, I have been able to create an user with --caps="usage=read, write" and bring its usages with GET /admin/usage?format=json HTTP/1.1 Host: ceph-server Authorization: AWS {access-key}:{hash-of-header-and-secret} After of this, I have created an user with --caps="user=read, write", but I can't bring its user info with GET /admin/user?format=json HTTP/1.1 Host: ceph-server Authorization: AWS {access-key}:{hash-of-header-and-secret} 403 forbidden is responsed. And just another comment. When I try to modify an user, I can't change the caps field. The command radosgw-admin user modify --uid="user" --caps="usage=read, write" doesn't fail, but doesn't update the user. Many thanks and best regards, Álvaro. -----Mensaje original----- De: ceph-users-bounces@xxxxxxxxxxxxxx [mailto:ceph-users-bounces@xxxxxxxxxxxxxxx] En nombre de Yehuda Sadeh Enviado el: martes, 09 de julio de 2013 18:27 Para: Bright CC: ceph-users Asunto: Re: How to use Admin Ops API in Ceph Object Storage 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 ____________ Verificada la ausencia de virus por G Data AntiVirus Versión: AVA 22.10857 del 10.07.2013 Noticias de virus: www.antiviruslab.com _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com