Queries the list of buckets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListOssBucket |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BucketName |
string |
No |
The bucket name. |
iboxpublic**** |
| Lang |
string |
No |
The language type for requests and responses. Default value: zh. Valid values:
|
en |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for this request. You can use it to troubleshoot issues. |
3956048F-9D73-5EDB-834B-4827BB48**** |
| Data |
array<object> |
The data details. |
|
|
object |
The data details. |
||
| BucketName |
string |
The bucket name. |
iboxpublic**** |
| Support |
boolean |
Indicates whether detection is supported. Valid values:
|
true |
| Message |
string |
The reason why detection is not supported, if applicable. |
Unsupported Region。 |
| StorageClass |
string |
The storage class of the bucket. Valid values:
|
Standard |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| SupportConfig |
string |
Indicates whether configuration is supported. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "3956048F-9D73-5EDB-834B-4827BB48****",
"Data": [
{
"BucketName": "iboxpublic****",
"Support": true,
"Message": "Unsupported Region。",
"StorageClass": "Standard",
"RegionId": "cn-hangzhou",
"SupportConfig": "true"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.