RadosGW admin API - HTTP 403 Forbidden

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

 



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 = '' % 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 = '' % 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@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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


  Powered by Linux