Skip to main content

Get Bucket Usage

GET 
/storage/buckets/:bucketName/usage/storage

Returns the amount of storage space and number of files a bucket takes up.

Request

Path Parameters

    bucketName stringrequired

    The name of the bucket

Responses

200: Bucket Storage Usage

Request samples


curl -L 'https://api.telnyx.com/v2/storage/buckets/:bucketName/usage/storage' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"size": 123456,
"size_kb": 123456,
"num_objects": 123456,
"timestamp": "2020-01-01T00:00:00Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}