- Documentation
Torch Object Storage
SDK Reference
PHP
Bucket Interface
Retrieving Bucket Metadata (PHP SDK)
Bucket Interface
Retrieving Bucket Metadata (PHP SDK)
Retrieving Bucket Metadata (PHP SDK)
A bucket is a container for storing objects. This article presents example code for retrieving bucket metadata.
Sample Code
You can obtain bucket metadata using the TosClient->headBucket API. This API also allows you to verify whether a bucket exists. Sample code is as follows:
Last updated: 2025.09.23 14:41:21