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.
Asked
Active
Viewed 578 times
0

styshoo
- 563
- 4
- 9
-
You asked for a REST API, which I linked to, and yet you accepted a Java tool that uses the same API I linked to? – robbat2 Jan 30 '18 at 19:02
-
sorry, not familiar with "accepted", I wanted both of your answers to be "accepted", but it seems that only one option can be accepted. – styshoo Jan 31 '18 at 23:18
2 Answers
1
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

robbat2
- 1,154
- 10
- 12