Queries the storage usage in the previous billing cycle and the cumulative number of calls in this month.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:GetOssStorageAndAccByBuckets |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BucketList |
string |
No |
The information about the bucket. |
my-bucket |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
112F4860-F1B2-58DD-8FC0-75F19DA1C4BF |
| BucketList |
array<object> |
The information about the bucket. |
|
|
object |
|||
| Acc |
integer |
The number of times that the bucket is accessed. |
1000 |
| Bucket |
string |
The name of the bucket. |
my-bucket |
| StorageUsageByte |
integer |
The storage usage of the bucket. Unit: bytes. |
1024 |
Examples
Success response
JSON format
{
"RequestId": "112F4860-F1B2-58DD-8FC0-75F19DA1C4BF",
"BucketList": [
{
"Acc": 1000,
"Bucket": "my-bucket",
"StorageUsageByte": 1024
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParamNotEnough | Insufficient parameters | |
| 400 | ParamScopeError | Invalid parameter value | |
| 400 | ParamTypeError | Invalid parameter type | |
| 400 | SqlError | Databaseoperationerror | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.