1.1. Get Started¶
ECL2.0 Wasabi Object Storage API allows you to control Wasabi Object Storage service usage and user management.
Here you can see how to use the ECL2.0 Wasabi Object Storage API to for some basic use cases.
Get an authentication token¶
At first, please call the authentication API. You can get authentication token by following instructions on this page. In following steps, you need to put the authentication token in X-Auth-Token header of API request.
Start using ECL2.0 Wasabi Object Storage¶
Create a Wasabi Account¶
Warning
When you create a Wasabi Account, the minimum usage fee will be charged from that point.
Request¶
$ curl -H "Content-Type: application/json" \
-H "X-Auth-Token: {token}" \
-X POST {api_endpoint}/tenants/{tenant_id}/account
Response¶
{
"AcctNum": <AcctNum>,
"AcctName": "<TenantID>@ecl.ntt.com",
"CreateTime": "<CreateTime>"
}
Create a Wasabi User¶
Request¶
$ curl -H "Content-Type: application/json" \
-H "X-Auth-Token: {token}" \
-X POST {api_endpoint}/tenants/{tenant_id}/users \
-d '{"UserName": "<UserName>"}'
Response¶
{
"User": [
{
"UserId": "<UserID>",
"UserName": "<UserName>",
"Password": "<Initial Password>",
"AccessKeyId": "<AccessKey>",
"SecretAccessKey": "<SecretKey>",
"CreateDate": "<CreateTime>"
}
]
}
Use Wasabi¶
- Please use Wasabi with the created user.