- Documentation
Torch Object Storage
SDK Reference
PHP
Bucket Interface
Listing Buckets (PHP SDK)
Bucket Interface
Listing Buckets (PHP SDK)
Listing Buckets (PHP SDK)
A bucket is a container for storing objects. This article presents sample code for listing buckets.
Sample Code
You can use TosClient->listBuckets to list buckets. This interface lists buckets across all regions. The following is sample code:
Last updated: 2025.09.23 14:41:21