Creating S3 accounts via REST API

You can create an account for an S3 user by sending a PUT request to the ostor-accounts service along with the user email address and an account name:

# s3_curl POST "http://s3.example.com/?ostor-accounts&emailAddress=user@email.com&accountName=account"
{
    "Name": "account",
    "AWSAccessKeys": [
        {
            "AWSAccessKeyId": "bc6265392b818465V8NZ",
            "AWSSecretAccessKey": "KcPbLkqOrbtLXCn3UgqAz3CEurRXtikrT9ZeDVFa"
        }
    ]
}