Hello everyone, I'm trying use the rgw admin API, but every user operation I tried I received "HTTP 403 Forbidden":
In [1]: import requests In [2]: from awsauth import S3Auth In [3]: access_key = 'ACCESS_KEY' In [4]: secret_key = 'SECRET_KEY' In [5]: server = 'rgw.example.com' In [6]: url = 'http://%s/admin/user?format=json&uid=someuser' % server In [7]: r = requests.get(url, auth=S3Auth(access_key, secret_key, server)) In [8]: r.status_code Out[8]: 403 But if try another URL, as usage, I'm able to get HTTP 200: In [1]: import requests In [2]: from awsauth import S3Auth In [3]: access_key = 'ACCESS_KEY' In [4]: secret_key = 'SECRET_KEY' In [5]: server = 'rgw.example.com' In [6]: url = 'http://%s/admin/usage?format=json' % server In [7]: r = requests.get(url, auth=S3Auth(access_key, secret_key, server)) In [8]: r.status_code Out[8]: 200 There are something I'm doing wrong? Regards. Italo Santos http://italosantos.com.br/
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com