Is there any method to remotely create ceph rgw user?

744 Views Asked by At

As you know, we can create a ceph rgw user by command "radosgw-admin user create", but we can only execute this command in the shell of ceph environment. So, Is there any method to remotely create ceph rgw user? For example, by restful api.

2

There are 2 best solutions below

0
robbat2 On BEST ANSWER

Yes, there is an an Admin REST API, and it does have a create-user operation.

PUT /{admin}/user?format=json HTTP/1.1
Host: {fqdn}

(json-payload)

It uses the same S3 authentication, just with extra permissions granted to the user, so look for one of the clients that can let you do that, such as RGWAdmin

0
petertc On

You can try radosgw-admin4j if you are a Java user.