Re: Radosgw Admin REST API

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

 



Hello again,

In fact, I have still a problem...
I can do GET requests without problems,
but when I try to do a PUT request, to create a user, then I get a
"Code: AccessDenied" return.

I do it with this code :

def user_create (uid, acess_key, secret_key, email):
        url = 'http://%s/admin/user?format=json' % (ENDPOINT)

        opt = {
                'uid': uid,
                'email': email,
                'access-key': acess_key,
                'secret-key': secret_key
        }

        r = requests.put (url, auth=S3Auth(ACCESS_KEY, SECRET_KEY,
ENDPOINT), data=opt)

        data = json.loads (r.content)
        pprint (data)


The fact is that my caps should be OK :

  "caps": [
        { "type": "users",
          "perm": "*"}],

Is there something I missed ?

Thanks a lot for your help,
Alexis
_______________________________________________
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