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.
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