- Documentation
Torch Object Storage
SDK Reference
C++
Bucket Interface
Basic Bucket Interface
Obtaining Bucket Region (C++ SDK)
Basic Bucket Interface
Obtaining Bucket Region (C++ SDK)
Obtaining Bucket Region (C++ SDK)
A bucket is the globally unique namespace in TOS, functioning as a data container for storing object data. This article describes how to obtain the region where a bucket is located.
Precautions
- Only the bucket owner can view the region where the bucket is located.
- When managing buckets and objects within buckets using the TOS C++ SDK, you must use the domain name of the region where the bucket is located. For more information about regions and access domain names, see Regions and Access Domain Names.
Sample Code
The following code is used to obtain the region (referred to as Region or Location) where the bucket examplebucket is located.
Last updated: 2025.09.25 14:22:45