GET sub-accounts/:id/buckets
- 09 Sep 2024
- 1 Minute to read
- Print
- PDF
GET sub-accounts/:id/buckets
- Updated on 09 Sep 2024
- 1 Minute to read
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Get Sub-Account Id Buckets
Returns daily utilizations of all buckets broken down into per-bucket components that belong to the specified Sub-Account.
URL (GET)
/api/v1/sub-accounts/:subAccountId/buckets
Parameters
Key Name | Description | Required |
---|---|---|
page | List page number | |
size | List page size | |
from (yyyy-mm-dd) | Date range from year, month, day | |
to (yyyy-mm-dd) | Date range to year, month, day | |
latest | Ture or false. When set to true, the latest utilization for the account is returned. | |
name | Filter by name | |
bucketNumber | Filter by bucket number | |
region | Filter by region |
Request Body
None
Response
{
"success": true,
"message": "Successfully read!",
"data": {
"items": [
{
"id": 4344526,
"startTime": "2022-07-26",
"endTime": "2022-07-27",
"activeStorage": 0.00488281252,
"deletedStorage": 0,
"storageWrote": 0,
"storageRead": 0,
"activeObjects": 1,
"deletedObjects": 0,
"egress": 0,
"ingress": 0,
"apiCalls": 0,
"name": "oc19.s1.bkt",
"region": "us-east-1",
"bucketNumber": 1402212
},
{
"id": 4339553,
"startTime": "2022-07-25",
"endTime": "2022-07-26",
"activeStorage": 0.00488281252,
"deletedStorage": 0,
"storageWrote": 0,
"storageRead": 0,
"activeObjects": 1,
"deletedObjects": 0,
"egress": 0,
"ingress": 0,
"apiCalls": 0,
"name": "oc19.s1.bkt",
"region": "us-east-1",
"bucketNumber": 1402212
},