Querying S3 user buckets via REST API

You can display information of a bucket by sending a GET request to the ostor-buckets service along with the bucket name:

# s3_curl GET "http://s3.example.com/?ostor-buckets&bucket=bucket1"
{
"Buckets": [
    {
        "size": {
            "current": 12288,
            "h_integral": 7360512,
            "hmax": 12288,
            "last_ts": 424241
        },
        "epoch": 0,
        "owner_id": "ba7eba06129464c5",
        "name": "bucket1",
        "creation_date": "2018-05-25T17:12:00.000Z"
    }
]}