basho / riak_cs

Riak CS is simple, available cloud storage built on Riak.
http://docs.basho.com/riakcs/latest/
Apache License 2.0
566 stars 95 forks source link

How to create user with curl having admin user credentials? [JIRA: RCS-373] #1322

Open muminoff opened 8 years ago

muminoff commented 8 years ago

Hello there. Sorry if this already been asked, but I couldn't find solution in existing issues.

Well, I have installed riak, riak-cs, stanchion and riak-cs-control. Everything is working fine. I am now able to create user through riak-cs-control web interface.

But, I don't know how to create user through curl command line.

As described here:

By default, only the admin user may create new user accounts.

Yes, I do have admin user credentials, but how can I use it with curl to access http://my-riak-cs.backend:8080/riak-cs/user ?

PS: I don't have s3curl installed on my Macbook. Or should I install it? Can I get it worked with curl only?

muminoff commented 8 years ago

Sorry, if my issue became duplicated. I found answer here.

Well, I was calling riak-cs API via Python requests. Can you guys just provide how it can be used with curl ?