Queries Object Storage Service (OSS) 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 name of the bucket. |
iboxpublic**** |
| Lang |
string |
No |
The language of the content in the request and response. Default value: zh. Valid values:
|
en |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
3956048F-9D73-5EDB-834B-4827BB48**** |
| Data |
array<object> |
The data returned. |
|
|
object |
|||
| BucketName |
string |
The name of the bucket. |
iboxpublic**** |
| Support |
boolean |
Indicates whether the bucket can be checked. Valid values:
|
true |
| Message |
string |
The reason why the bucket cannot be checked. |
Unsupported Region. |
| StorageClass |
string |
The storage class of the bucket. Valid values:
|
Standard |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| SupportConfig |
string |
Whether to support config. 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 | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.