You can call GetBucketInfo to retrieve detailed Bucket information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:GetBucketInfo |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
Yes |
Bucket name. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Request ID. |
C5831388-2D4B-46F4-A96B-D4E6BD06E7521 |
| BucketInfo |
object |
Bucket information list. |
|
| BucketAcl |
string |
Bucket access control list type:
|
private |
| BucketName |
string |
Bucket name. |
test |
| Comment |
string |
Comments. |
das |
| CreateTime |
string |
Bucket creation time. Represented in ISO8601 standard, using UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. |
2022-10-12T05:45:00Z |
| LogicalBucketType |
string |
Single node storage. Value: sink. |
sink |
| ModifyTime |
string |
Bucket modification time. Represented in ISO8601 standard, using UTC time. Format: yyyy-MM-ddTHH:mm:ssZ. |
2022-10-12T06:45:00Z |
Examples
Success response
JSON format
{
"RequestId": "C5831388-2D4B-46F4-A96B-D4E6BD06E7521",
"BucketInfo": {
"BucketAcl": "private",
"BucketName": "test",
"Comment": "das",
"CreateTime": "2022-10-12T05:45:00Z",
"LogicalBucketType": "sink",
"ModifyTime": "2022-10-12T06:45:00Z"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid%s | Specified parameter %s is not valid. | |
| 400 | InvalidBucketName | Specified parameter BucketName is not valid. | The specified BucketName parameter is invalid. |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. | |
| 403 | AccessDenied | auth is not valid | |
| 403 | UserDisable | The user has been disabled due to arrears. | The user has been disabled due to arrears. |
| 404 | NoSuchBucket | The specified bucket does not exist. | The requested bucket does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.