List buckets
Updated at:2025-11-03
The following method can list all buckets of a user:
Pyhton
1response = bos_client.list_buckets()
2for bucket in response.buckets:
3 print(bucket.name)
The parameters available for calling in the parsing class returned by the list_buckets method are as follows:
| Parameters | Description |
|---|---|
| owner | Bucket owner information |
| +id | User ID of bucket owner |
| +display_name | Name of bucket owner |
| buckets | Container storing the information of multiple buckets |
| bucket | Container storing the information of a bucket |
| +name | Bucket name |
| +creation_date | Bucket creation time |
| +location | Region to which a bucket belongs |
