Get API Usage
GET/storage/buckets/:bucketName/usage/api
Returns the detail on API usage on a bucket of a particular time period, group by method category.
Request
Path Parameters
bucketName stringrequired
The name of the bucket
Query Parameters
filter[start_time] date-timerequired
The start time of the period to filter the usage (ISO microsecond format)
Example: 2020-01-01T00:00:00.000Z
filter[end_time] date-timerequired
The end time of the period to filter the usage (ISO microsecond format)
Example: 2020-01-01T00:00:00.000Z
Responses
200: Bucket Usage
Response Headers
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/storage/buckets/:bucketName/usage/api' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"categories": [
{
"bytes_sent": [
123456
],
"bytes_received": [
123456
],
"ops": [
123456
],
"successful_ops": [
123456
],
"category": [
"put_obj"
]
}
],
"total": {
"bytes_sent": [
123456
],
"bytes_received": [
123456
],
"ops": [
123456
],
"successful_ops": [
123456
]
},
"timestamp": [
"2020-01-01T00:00:00Z"
]
}
]
}