Listing statistics objects via REST API
You can list all available statistics objects with the ostor-usage service and no parameters. The output only contains objects that have not been deleted. For example:
# s3_curl GET "http://s3.example.com/?ostor-usage"
{
"nr_items": 7,
"truncated": false,
"items": [
"s3-usage-8000000000000065-2017-02-01T16:31:54.000Z-1800",
"s3-usage-8000000000000067-2017-02-01T16:30:51.000Z-1800",
"s3-usage-8000000000000068-2017-02-01T16:27:25.000Z-1800",
"s3-usage-8000000000000069-2017-02-01T16:27:24.000Z-1800",
"s3-usage-8000000000000069-2017-02-01T16:31:07.000Z-1800",
"s3-usage-800000000000006a-2017-02-01T16:27:24.000Z-1800",
"s3-usage-800000000000006a-2017-02-01T16:31:08.000Z-1800"
]
}