Storage Stats

Get system-wide storage statistics and resource usage.
EndpointMethodAdmin Required
/api/v1/admin/storageStatsGETYes

Returns storage statistics including disk usage, bucket count, and user count.

Response

{
    "totalBytes": 500107862016,
    "availableBytes": 234567890123,
    "usedBytes": 265539971893,
    "alarikUsedBytes": 1073741824,
    "bucketCount": 15,
    "userCount": 3
}

Response Fields

totalBytes
integer
Total disk capacity in bytes.
availableBytes
integer
Available disk space in bytes.
usedBytes
integer
Total disk space used (system-wide) in bytes.
alarikUsedBytes
integer
Disk space used specifically by Alarik storage in bytes.
bucketCount
integer
Total number of buckets in the system.
userCount
integer
Total number of registered users.

Example Usage

curl -X GET "{API_BASE_URL}/api/v1/admin/storageStats" \
  -H "X-Access-Key: YOUR_ACCESS_KEY" \
  -H "X-Secret-Key: YOUR_SECRET_KEY"