I'm attempting to create a bucket in RiakCS using a curl PUT command. And the command is failing. This is the command I'm giving:
curl -ks https://p-riakcs.example.com/user:secret/riak/test -XPUT -H Content-Type:application/json --data-binary '{"props":{"n_val":5}}'
And this is the error I'm getting:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>NoSuchBucket</Code><Message>The specified bucket does not exist.</Message><Resource>/user:secret/riak/test</Resource><RequestId></RequestId></Error>
I was under the impression if I give RiakCS the name of a new bucket, it should create the new bucket on the fly.
How can I give this command correctly and create a new bucket in riakcs?