get__bucket_stats

Code Samples

# You can also use wget
curl -X GET https://backend.flashback.tech/bucket/stats \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}'

GET /bucket/stats

Get Bucket Statistics

Get statistics for storage buckets

Parameters

Name
In
Type
Required
Description

bucketId

query

string

false

Comma-separated list of bucket IDs

Example responses

200 Response

{
  "success": true,
  "stats": [
    {
      "bucketId": "550e8400-e29b-41d4-a716-446655440000",
      "totalCount": "1250",
      "totalUploadBytes": "1073741824",
      "totalDownloadBytes": "536870912",
      "totalSizeChange": "536870912"
    }
  ]
}

Responses

Status
Meaning
Description
Schema

200

Bucket statistics

Inline

Response Schema

Status Code 200

Name
Type
Required
Restrictions
Description

» success

boolean

false

none

Indicates if the request was successful

» stats

[object]

false

none

Array of bucket statistics

»» bucketId

string

false

none

Unique identifier for the bucket

»» totalCount

string

false

none

Total number of objects in the bucket

»» totalUploadBytes

string

false

none

Total bytes uploaded to the bucket

»» totalDownloadBytes

string

false

none

Total bytes downloaded from the bucket

»» totalSizeChange

string

false

none

Net change in bucket size (bytes)

Last updated

Was this helpful?